jQuery dialog question

Louis LaBrunda <[email protected]> Sun, 23 May 2021 17:22:14 -0400
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Organization Keystone Software Corp.
Message-ID <[email protected]>
Hi Everyone,

I'm trying to use the jQuery dialog as a replacement for the JavaScript alert() function.  I'm using VA Smalltalk
v9.2.2.  The code below opens the dialog when the image button is clicked but closes soon thereafter.  Does anyone have
any idea why and what I can do about it?  Or have a better way of doing it?

Lou

help: aString on: html
	"Create the html to display the help string."
	| helpString id |

	helpString := aString copyReplaceAll: LineDelimiter with: '\n\'.
	html div
		id: (id := html nextId);
		script: (html jQuery new dialog
			autoOpen: false;
			html: [:r | r label class: 'Label'; with: helpString];
			title: 'Help';
			width: 1000;
			resizable: true;
			modal: true).
	html space.
	html imageButton class: 'HelpImage'; title: ('Popup Help - ', aString); url: theSession helpUrl;
		onClick: (html jQuery id: id) dialog open.
-- 
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside