<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, so the callback, in this case,<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>callback: [ :value | self citySelectionChanged: value ];
</b><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onChange: ((html jQuery id: self liveHoodId) load html: [:r |
self renderHoodListOn: r] );
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onChange: ((html jQuery id: 's_results')&nbsp; load serializeThis;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html: [ :r | self renderStatusPanelOn: r. self
renderResultsOn: r ] )
<br>
<br>
will only be executed when the "serializeThis"&nbsp; is fired?<br>
<br>
Tim<br>
<br>
On 10-05-03 11:21 AM, Lukas Renggli wrote:
<blockquote
 cite="mid:z2n67628d691005031121n70cb0a74q32247b3d30534e78@mail.gmail.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Thanks Lukas, &nbsp;I understand that about AJAX and in this case the rendering
order does not matter. &nbsp;I was expecting the callback to complete before
either AJAX request is fired. &nbsp;Is this not correct?
    </pre>
  </blockquote>
  <pre wrap="">
Seaside only controls the order within a *single* AJAX request. In
your code you do two requests, but only serializes the list in one.

Lukas


  </pre>
  <blockquote type="cite">
    <pre wrap="">
On 10-05-03 11:12 AM, Lukas Renggli wrote:
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">
&nbsp; &nbsp; &nbsp; &nbsp;onChange: ((html jQuery id: self liveHoodId) load html: [:r | self
renderHoodListOn: r] );
&nbsp; &nbsp; &nbsp; &nbsp;onChange: ((html jQuery id: 's_results') &nbsp;load serializeThis;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;html: [ :r | self renderStatusPanelOn: r. self
renderResultsOn: r ] )

        </pre>
      </blockquote>
      <pre wrap="">
AJAX is asynchronous. You trigger off two AJAX requests concurrently
that arrive in an undefined order at the server. Combine them to one
request (I strongly suggest that, this is much more efficient) to get
deterministic behavior. Alternatively you can also keep the two
requests, but only start the second one when the first completed.

Lukas


      </pre>
    </blockquote>
    <pre wrap="">
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

    </pre>
  </blockquote>
  <pre wrap="">


  </pre>
</blockquote>
<br>
</body>
</html>