[Seaside] JQDialog close and confirm

Jan van de Sandt jvdsandt at gmail.com
Fri Nov 25 12:48:09 UTC 2011


Hi,

Sure. I use this a lot. For example you can set the buttons of a JQuery
dialog this:

^ OrderedCollection new
add: (Dictionary new
at: 'id' put: html nextId ;
at: 'text' put: 'Annuleer' ;
at: 'click' put: (html jQuery ajax script: [ :h | self actionCancel: h ])
asFunction ;
yourself) ;
add: (Dictionary new
at: 'id' put: html nextId ;
at: 'text' put: 'Ok' ;
at: 'click' put: (html jQuery ajax
serializeForm: (html jQuery id: self personDataFormId) ;
script: [ :s | self actionFinish: s ]) asFunction ;
yourself) ;
asArray

In the #actionFinish: method I check the form ans show an error message or
close the dialog.

Jan.


On Fri, Nov 25, 2011 at 12:55 PM, Malte Grunwald <
malte.grunwald at googlemail.com> wrote:

> Hey everyone,
>
> I am actually playing around with the JQDialog, now i have a problem.
>
> Beside my close button, i want to create a confirm button, which
> serializes a form and then closes the dialog, like it is in every normal
> Desktopapplication.
>
> Is there any possibility to combine this two actions?
>
> Thank you very much.
>
> Kind Regards
>
> Malte
> ______________________________**_________________
> seaside mailing list
> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20111125/1508c1f5/attachment.htm


More information about the seaside mailing list