<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE>.hmmessage P {
        PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-FAMILY: Tahoma; FONT-SIZE: 10pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><FONT color=#000080 face="Trebuchet MS"><SPAN
class=846431714-15032012>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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#000080 face="Trebuchet MS"><SPAN
class=846431714-15032012> </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#000080 face="Trebuchet MS"><SPAN
class=846431714-15032012></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> seaside-bounces@lists.squeakfoundation.org
[mailto:seaside-bounces@lists.squeakfoundation.org] <B>On Behalf Of </B>Robert
Sirois<BR><B>Sent:</B> jeudi, 15. mars 2012 15:14<BR><B>To:</B>
seaside@lists.squeakfoundation.org<BR><B>Subject:</B> RE: [Seaside] answer:
and jQuery<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>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?<BR><BR>RS<BR><BR>
<DIV>
<DIV id=SkyDrivePlaceholder></DIV>
<HR id=stopSpelling>
Date: Thu, 15 Mar 2012 08:59:41 +0100<BR>From:
malte.grunwald@googlemail.com<BR>To:
seaside@lists.squeakfoundation.org<BR>Subject: [Seaside] answer: and
jQuery<BR><BR>
<META name=Generator content="Microsoft SafeHTML">Hello everybody.<BR><BR>My
problem: <BR><BR>I am working with a JQDialog and when the "okay" button
is clicked, I want to use a <I>callback:</I> and <I>answer:</I> to get back to
the <I>go </I>method in my Task
class.<BR><BR>Example:<BR><SMALL><BR><I>renderOptionsOn: html id: anIdString
width: anInteger <BR> (html div)<BR>
id: anIdString;<BR>
script: (((html jQuery id: anIdString) dialog)<BR>
title: 'test';<BR>
autoOpen: false;<BR>
modal: true;<BR>
width: anInteger;<BR>
height: 'auto';<BR>
resizable: false;<BR>
addButton: 'Okay'<BR>
do: (html jQuery ajax
script: <BR>
[:s | <BR>
s<BR>
<< (s jQuery
id: anIdString , 'form') serialize;<BR>
<< (s jQuery id: #Settings) dialog close;<BR>
<< (s jQuery ajax callback: [self answer: self
something])]);<BR>
addButton: (self textAt: #CancelTx) do:
html jQuery new dialog close);<BR>
<BR> with: <BR>
[self
<BR>
renderInputsOn:
html<BR>
commands: self
settings<BR>
id:
anIdString,'test']</I><BR></SMALL><BR>I read a comment of Lukas Renggli from
2010, it says it is not possible to <I>answer: </I>from jQuery is this still
up to date?<BR>Does anyone have an idea how I can solve the
problem?<BR><BR>Thank
you!<BR><BR>Regards<BR><BR>_______________________________________________
seaside mailing list seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</DIV></DIV></BLOCKQUOTE></BODY></HTML>