[Project_owners] JavaScript Question
joe ertaba
belaviyo at gmail.com
Sat Nov 29 07:28:24 PST 2008
Hi,
I have a asynchronous function which need unknown time to answer
var a = my_async_function("some inputs");
var b = a + ....
How can I use such functions ?
My solution :
I put rest of the code in a function and I ask my_async_function to fire it
after results are ready ! some thing like this:
var a = my_async_function("some inputs", function(a){ b=a+... } );
Any better idea ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081129/55434fc8/attachment.html>
More information about the Project_owners
mailing list