2009/12/9 Ramiro Diaz Trepat <
[hidden email]>:
> Hi
> I am a complete n00b in terms of ajax / jQuery and I have a couple of basic
> questions:
> I have created a simple dialog using code similar to the one provided in the
> example:
> html div id: 'dialog'; title: 'New Simulation';
> script: (html jQuery new dialog
> title: 'New Simulation';
> width: 600;
> autoOpen: false;
> addButton: 'Done' do: html jQuery new dialog close;
> addButton: 'Close' do: html jQuery new dialog close);
> with: [ ... ]
>
> I see that JQ widgets do not implement the #callback: method, hence I don't
> quite know how to process things in case someone presses the 'Done' button
> above.
Normally you attach AJAX actions to the event (which can have and
trigger all kinds of callbacks), but you can also do other things:
addButton: 'Done' do: (html jQuery ajax ...) , (html jQuery new
dialog close);
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside