[Seaside] answer: and jQuery

Bany, Michel mbany at cincom.com
Thu Mar 15 14:25:14 UTC 2012

FWIW, we have been successfully using the JQuery extensions from Nick
Ager (JQuery-Extensions-NickAger.2.mcz) in VisualWorks and I believe it
would do what you are after. It allows you to "call" a component in a
JQuery dialog and get a response object from the component when the
dialog closes. Works a bit like the now old-fashioned #lightbox: method.


	From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Robert
	Sent: jeudi, 15. mars 2012 15:14
	To: seaside at lists.squeakfoundation.org
	Subject: RE: [Seaside] answer: and jQuery
	Ajax is asynchronous. In Seaside's case, it is independent of
the regular call/answer continuation stack. I can't remember if it works
or not, but if you reload the page, has your component answered after
firing the ajax call with #answer?

	Date: Thu, 15 Mar 2012 08:59:41 +0100
	From: malte.grunwald at googlemail.com
	To: seaside at lists.squeakfoundation.org
	Subject: [Seaside] answer: and jQuery
	Hello everybody.
	My problem: 
	I  am working with a JQDialog and when the "okay" button is
clicked, I want to use a callback: and answer: to get back to the go
method in my Task class.
	renderOptionsOn: html id: anIdString width: anInteger 
	    (html div)
	        id: anIdString;
	        script: (((html jQuery id: anIdString) dialog)
	                    title: 'test';
	                    autoOpen: false;
	                    modal: true;
	                    width: anInteger;
	                    height: 'auto';
	                    resizable: false;
	                    addButton: 'Okay'
	                        do: (html jQuery ajax script: 
	                                    [:s | 
	                                        << (s jQuery id:
anIdString , 'form') serialize;
	                                        << (s jQuery id:
#Settings) dialog close;
	                                        << (s jQuery ajax
callback: [self answer: self something])]);
	                    addButton: (self textAt: #CancelTx) do: html
jQuery new dialog close);
	                    renderInputsOn: html
	                    commands: self settings
	                    id: anIdString,'test']
	I read a comment of Lukas Renggli from 2010, it says it is not
possible to answer: from jQuery is this still up to date?
	Does anyone have an idea how I can solve the problem?
	Thank you!
	_______________________________________________ seaside mailing
list seaside at lists.squeakfoundation.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120315/13a4e9c5/attachment.htm

More information about the seaside mailing list