on 2008-06-30 10:52
on 2008-06-30 12:09
Hi, Your first one doesn't work for various reasons. The second one will work, but it has the same sync/async problem that your other thread suffers from. -- T.J. Crowder tj / crowder software / com
on 2008-06-30 12:53
FYI, what you're doing in this example is setting the value of lucas to the function processRSS immediately, and then handing that value to Ajax.Request as the onComplete handler. Syntactically it may look like it's performing the assignment in the callback, but it isn't. -Fred On Mon, Jun 30, 2008 at 3:51 AM, ljundie <firstname.lastname@example.org> wrote: > > onComplete: lucas = processRSS > > }); > } > -- Science answers questions; philosophy questions answers.
on 2008-07-01 02:39
To elaborate a little: lucas = processRSS is an expression like any other: lucas = processRSS 4 + 3 "My name is " + myName !myBoolean As with any other expression, it gets simplified first, and the onComplete property takes on that simplified value. In the case of the assignment operator (=), the expression simplifies to the value being assigned (in this case, a reference to the processRSS function). Best to avoid this syntax entirely - I've seen it used as sugar, but IMHO it's just confusing.