R
Raphael Bauduin
Hi,
I'm working with mozilla, building a little XUL app.
I have a datasource, and want to display a message
once it is loaded (datasource.loaded is true).
So, I thought to use timouts, but as the code to execute is
passed as a string, I cannot pass local variable to this code.
Anyone has a suggestion?
Thanks.
Raph
Here is what I wanted to do (but I can't pass the datasource as argument):
setTimeout(check_if_loaded(datasource), 500)
with this function:
function check_if_loaded(a_ds)
{
if (!datasource.loaded)
{
setTimeout(check_if_loaded(datasource), 500)
}
}
I'm working with mozilla, building a little XUL app.
I have a datasource, and want to display a message
once it is loaded (datasource.loaded is true).
So, I thought to use timouts, but as the code to execute is
passed as a string, I cannot pass local variable to this code.
Anyone has a suggestion?
Thanks.
Raph
Here is what I wanted to do (but I can't pass the datasource as argument):
setTimeout(check_if_loaded(datasource), 500)
with this function:
function check_if_loaded(a_ds)
{
if (!datasource.loaded)
{
setTimeout(check_if_loaded(datasource), 500)
}
}