Hi,
this example (JQDialogFunctionalTest) opens a lightbox if the user clicks on a button. | id | html div id: (id := html nextId); script: (html jQuery new dialog html: JQCounterFunctionalTest new; title: 'Lightbox Dialog'; resizable: false; modal: true). html submitButton onClick: (html jQuery id: id) dialog open; with: 'Open Lightbox' I want the lightbox to open immediately, when the page is generated (within renderContentOn:) Can anyone help? Sabine |
just add this:
html document addLoadScript: ( (html jQuery id: id) dialog open ). Cheers, Bob On 4/11/13 12:57 PM, Sabine Knöfel
wrote:
Hi, this example (JQDialogFunctionalTest) opens a lightbox if the user clicks on a button. | id | html div id: (id := html nextId); script: (html jQuery new dialog html: JQCounterFunctionalTest new; title: 'Lightbox Dialog'; resizable: false; modal: true). html submitButton onClick: (html jQuery id: id) dialog open; with: 'Open Lightbox' I want the lightbox to open immediately, when the page is generated (within renderContentOn:) Can anyone help? Sabine -- View this message in context: http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903.html Sent from the Seaside General mailing list archive at Nabble.com. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thank you, Bob! Works!
On Thu, Apr 11, 2013 at 7:55 PM, Bob Arning-2 [via Smalltalk] <[hidden email]> wrote: > just add this: > > html document addLoadScript: ( > (html jQuery id: id) dialog open > ). > > > Cheers, > Bob > > On 4/11/13 12:57 PM, Sabine Knöfel wrote: > > Hi, > > this example (JQDialogFunctionalTest) opens a lightbox if the user clicks on > a button. > > | id | > html div > id: (id := html nextId); > script: (html jQuery new dialog > html: JQCounterFunctionalTest new; > title: 'Lightbox Dialog'; > resizable: false; > modal: true). > html submitButton > onClick: (html jQuery id: id) dialog open; > with: 'Open Lightbox' > > I want the lightbox to open immediately, when the page is generated (within > renderContentOn:) > > Can anyone help? > > Sabine > > > > > -- > View this message in context: > http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903.html > Sent from the Seaside General mailing list archive at Nabble.com. > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903p4680910.html > To unsubscribe from lightbox open within renderContentOn, click here. > NAML |
In reply to this post by Bob Arning-2
isn't there an 'autoOpen' option on the JQDialog ?
On 11 Apr 2013, at 19:54, Bob Arning <[hidden email]> wrote: > just add this: > > html document addLoadScript: ( > (html jQuery id: id) dialog open > ). > > > Cheers, > Bob > > On 4/11/13 12:57 PM, Sabine Knöfel wrote: >> Hi, >> >> this example (JQDialogFunctionalTest) opens a lightbox if the user clicks on >> a button. >> >> | id | >> html div >> id: (id := html nextId); >> script: (html jQuery new dialog >> html: JQCounterFunctionalTest new; >> title: 'Lightbox Dialog'; >> resizable: false; >> modal: true). >> html submitButton >> onClick: (html jQuery id: id) dialog open; >> with: 'Open Lightbox' >> >> I want the lightbox to open immediately, when the page is generated (within >> renderContentOn:) >> >> Can anyone help? >> >> Sabine >> >> >> >> >> -- >> View this message in context: >> http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903.html >> >> Sent from the Seaside General mailing list archive at Nabble.com. >> _______________________________________________ >> seaside mailing list >> >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
yes, that works too. Better. Thanks.
html div id: self lightboxId; script: (html jQuery new dialog html: RKADialogTransientPersonView new; title: '....'; resizable: false; autoOpen: true; modal: true). On Thu, Apr 11, 2013 at 8:33 PM, Johan Brichau-2 [via Smalltalk] <[hidden email]> wrote: > isn't there an 'autoOpen' option on the JQDialog ? > > > On 11 Apr 2013, at 19:54, Bob Arning <[hidden email]> wrote: > >> just add this: >> >> html document addLoadScript: ( >> (html jQuery id: id) dialog open >> ). >> >> >> Cheers, >> Bob >> >> On 4/11/13 12:57 PM, Sabine Knöfel wrote: >>> Hi, >>> >>> this example (JQDialogFunctionalTest) opens a lightbox if the user clicks >>> on >>> a button. >>> >>> | id | >>> html div >>> id: (id := html nextId); >>> script: (html jQuery new dialog >>> html: JQCounterFunctionalTest new; >>> title: 'Lightbox Dialog'; >>> resizable: false; >>> modal: true). >>> html submitButton >>> onClick: (html jQuery id: id) dialog open; >>> with: 'Open Lightbox' >>> >>> I want the lightbox to open immediately, when the page is generated >>> (within >>> renderContentOn:) >>> >>> Can anyone help? >>> >>> Sabine >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903.html >>> >>> Sent from the Seaside General mailing list archive at Nabble.com. >>> _______________________________________________ >>> seaside mailing list >>> >>> [hidden email] >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >>> >>> >> >> _______________________________________________ >> seaside mailing list >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://forum.world.st/lightbox-open-within-renderContentOn-tp4680903p4680916.html > To unsubscribe from lightbox open within renderContentOn, click here. > NAML |
Free forum by Nabble | Edit this page |