<div dir="ltr">i think i am having alot of difficulty understanding out to phrase ajax and jquery calls in seaside.. everywhere else, i use jquery etc unobtrusively.. so i don&#39;t leave the javacript world when i write javascript. i just can&#39;t seem to find anything that makes sense on how to do something as simple as this using pure seaside/smalltalk.<div><br><div>i can&#39;t really even understand what the &quot;&lt;&lt;&quot; in:</div><div><div>script: [ :s | s &lt;&lt; (s jQuery: #logger) html: DateAndTime now</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>     ]);</div></div><div>does..</div><div><br></div><div>in plain english, i would like to do this:</div><div><br></div><div>- when the page loads, call the url as an ajax function</div><div>- set the variable -&gt; currentUser friendsList: (from the above)</div><div><br></div><div>but i am not understanding how to even code this..</div><div><br></div><div>thanks!</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 3:27 PM Sebastian Sastre &lt;<a href="mailto:sebastian@flowingconcept.com">sebastian@flowingconcept.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">why the fork that way?<br>
<br>
I’d think more into make it a normal render page that has a little piece of javascript that will do an ajax hit to a server callback to do whatever you want, no?<br>
<br>
<br>
<br>
<br>
&gt; On Feb 27, 2015, at 1:45 PM, sergio_101 &lt;<a href="mailto:sergio.rrd@gmail.com" target="_blank">sergio.rrd@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; i am currently writing a facebook application in seaside. one of the most important pieces of data i need to retrieve is the user&#39;s friends list. unfortunately, this could end up being a substantial amount of data. fortunately, the load time for this data is not horrible, just a few seconds.<br>
&gt; i am making the assumption that while interacting with my app, the user will not be adding new friends mid stream, and that during each session, the friends list will be static.<br>
&gt;<br>
&gt; what i would like to do is make this happen completely behind the scenes, so that when the user logs in, the request for the friends list is fired off RIGHT AFTER the page is rendered.<br>
&gt; i read the section on concurrency in &#39;deep into pharo&#39;, and while incomplete, it makes enough sense for me to try it.<br>
&gt; my question is.. i am going to do something like:<br>
&gt;<br>
&gt; [currentUser updateData] fork<br>
&gt;<br>
&gt; 1. if i want to do that RIGHT AFTER rendering, can i put that at the end of renderContentOn: html ?<br>
&gt; 2. when i want to work with the data, how would i know if it was done updating? i was thinking of using a semaphore.. but how would i let the next process know to keep waiting until the process was done? i would want to do something like: getFriendsList (but make sure process that populates it is done before running the request).<br>
&gt;<br>
&gt; thanks!<br>
&gt; ______________________________<u></u>_________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<u></u>squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
<br>
______________________________<u></u>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
</blockquote></div>