<!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&nbsp;and get a response object from the component when the 
dialog closes. Works a bit like&nbsp;the now old-fashioned&nbsp;#lightbox: 
method.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#000080 face="Trebuchet MS"><SPAN 
class=846431714-15032012>&nbsp;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#000080 face="Trebuchet MS"><SPAN 
class=846431714-15032012></SPAN></FONT>&nbsp;</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&nbsp; 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>&nbsp;&nbsp;&nbsp; (html div)<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; id: anIdString;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  script: (((html jQuery id: anIdString) dialog)<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  title: 'test';<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoOpen: false;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  modal: true;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; width: anInteger;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  height: 'auto';<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; resizable: false;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  addButton: 'Okay'<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; do: (html jQuery ajax 
  script: <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [:s | <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  s<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt; (s jQuery 
  id: anIdString , 'form') serialize;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &lt;&lt; (s jQuery id: #Settings) dialog close;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &lt;&lt; (s jQuery ajax callback: [self answer: self 
  something])]);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addButton: (self textAt: #CancelTx) do: 
  html jQuery new dialog close);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [self 
  <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderInputsOn: 
  html<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; commands: self 
  settings<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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>