Wonderful!
Thanks.
On Sep 20, 12:16 pm, Michael Geary wrote:
> Ah, I did misread the problem. Now I follow you, thanks for the
> clarification.
>
> There is indeed a better and simpler way to do this, which works with
> *any*kind of asynchronous callback. You don't need to rely on having a
> sp
Ah, I did misread the problem. Now I follow you, thanks for the
clarification.
There is indeed a better and simpler way to do this, which works with
*any*kind of asynchronous callback. You don't need to rely on having a
specific
object returned that you can stuff data into. Simply use a closure.
Hi Mike,
I think you might have misread my post and the code attached.
I am quite aware of the fact that the callback function only runs upon
a successful completion of the request and is run asynchronously. If
you look at the code i've written you'll see that i am in fact
_counting_ on that sin
getJSON, like all Ajax and Ajax-style calls, is *asynchronous*. That's what
the A in Ajax stands for.
Instead of trying to use a return value, you need to use the
getJSONcallback function (which you're already providing) to do
whatever you want
with the data.
So your code might look something lik
4 matches
Mail list logo