Now that 3.0 RC is available (thanks for all the work; the welcome page is a nice improvement), I'd like to revisit a question I had posted a while ago: is there a jQuery equivalent to the Scriptaculous lightbox in Seaside 3.0?<div>
<br></div><div>As I understand it, WADecoration subclass SULightbox as used in WAComponent>>#lightbox: allows for the use of #lightbox: instead of a #call:, whereas the jQuery dialog examples require that the dialog component be defined, and its id known, before the 'dialog open' is sent, so the component itself can't be defined in the callback. </div>
<div><br></div><div>For jQuery, the example code is...</div><div><br></div><div> | id |<br> html div<br> id: (id := html nextId);<br> script:
(html jQuery new dialog<br> html: JQCounterFunctionalTest new;<br> title:
'Lightbox Dialog';<br> resizable: false;<br> modal:
true).<br> html submitButton<br> onClick: (html jQuery id: id)
dialog open;<br> with: 'Open Lightbox'</div><div><br></div><div>In Scriptaclous, I can code... </div><div><br></div><div> html submitButton</div><div> callback: [self lightbox: WACounter new];</div>
<div> with: 'Open Lightbox'</div><div><br></div><div>...how can I do the equivalent in jQuery? </div><div><br></div><div>Coding a jQuery equivalent of the SULightbox decorator does not seem that hard, but I'd rather leave it to the experts ;-)</div>
<div><br></div><div>Thanks,</div><div>Bob</div><div><br></div><div><br></div>