[Seaside] Concurrent Programming
sergio.rrd at gmail.com
Fri Feb 27 20:42:42 UTC 2015
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..
seem to find anything that makes sense on how to do something as simple as
this using pure seaside/smalltalk.
i can't really even understand what the "<<" in:
script: [ :s | s << (s jQuery: #logger) html: DateAndTime now
in plain english, i would like to do this:
- when the page loads, call the url as an ajax function
- set the variable -> currentUser friendsList: (from the above)
but i am not understanding how to even code this..
On Fri, Feb 27, 2015 at 3:27 PM Sebastian Sastre <
sebastian at flowingconcept.com> wrote:
> why the fork that way?
> I’d think more into make it a normal render page that has a little piece
> you want, no?
> > On Feb 27, 2015, at 1:45 PM, sergio_101 <sergio.rrd at gmail.com> wrote:
> > i am currently writing a facebook application in seaside. one of the
> most important pieces of data i need to retrieve is the user'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
> > 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.
> > 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.
> > i read the section on concurrency in 'deep into pharo', and while
> incomplete, it makes enough sense for me to try it.
> > my question is.. i am going to do something like:
> > [currentUser updateData] fork
> > 1. if i want to do that RIGHT AFTER rendering, can i put that at the end
> of renderContentOn: html ?
> > 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).
> > thanks!
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside