onClick and jqDialog display
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Ciao, in the seaside 3.1 application i have a classic anchor declaration: html anchor callback:[ delta := self doSomethingWithJQDialogError ]; with: [html image url: DTRFileLibrary / #greenupGif ; altText: 'Incrementa'; title:'Incrementa' ] If the method doSomethingWithJQDialogError found a error display a relative dialog using the code: masterView jqDialog:(( WADTRGenericErrorManagement openOnException: ex onModel: aModel ) alert:true ) where jqDialog is: jqDialog: aComponent ^ self wait: [ :cc | self show: aComponent onAnswer: cc delegation: (JQDialogDecorator new delegate: aComponent; yourself). WARenderNotification signal ] Now i'm interested to display the dialog but inside a onClick ajax request. html anchor onClick: ( html jQuery ajax callback:[ delta:= doSomethingWithJQDialogError ]); with: [html image url: DTRFileLibrary / #greenupGif ; altText: 'Incrementa'; title:'Incrementa' ] With this code the system don't display the dialog. It display the dialog only after the browser page update. Does anyone have any guidance? Thanks, Dario _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside