[Seaside] jQuery dialog question
Jupiter Jones
jupiter.jones at mail.com
Sun May 23 22:47:18 UTC 2021
I may be wrong, but isn’t an imageButton a kind of submitButton - setting the url: would follow that link.
So clicking the button would open the dialog, then replace the page with "theSession helpUrl"
I’m not in a position to test this at the moment, but remove the url: setting on the image button and see what happens.
> On 24 May 2021, at 7:22 am, Louis LaBrunda <Lou at Keystone-Software.com> wrote:
>
> 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
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list