Hello,
I am doing some programming with xajax type stuff, and I have a problem that keeps creeping up on me.
I have a function that runs at a certain point in the script (testfunction()), and it references a div (testdiv). It doesn't work sometimes because the the function runs before the div "exists". Is there a way to check to see if a div exists so I can loop inside the function to wait until the div exists?
Such as:
function testfunction()
{
while(!exists('testdiv'))
wait.....
work with testdiv
}
Does this make sense?
Thanks,
Bryan
I am doing some programming with xajax type stuff, and I have a problem that keeps creeping up on me.
I have a function that runs at a certain point in the script (testfunction()), and it references a div (testdiv). It doesn't work sometimes because the the function runs before the div "exists". Is there a way to check to see if a div exists so I can loop inside the function to wait until the div exists?
Such as:
function testfunction()
{
while(!exists('testdiv'))
wait.....
work with testdiv
}
Does this make sense?
Thanks,
Bryan