Can anyone help on the setTimeOut() function?
I'm writing the code app.setTimeOut("app.alert('hello')",2000) which works correctly;
but the following code doesn't works..
app.setTimeOut("sayHello()",2000);
function sayHello()
{
app.alert('hello');
}
May i know where i'm doing mistake?
Thanks,
Nith
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Nith,
The JavaScript expression in the setTimeOut() method will execution in the context of the PDF Doc object so you would need to specify the absolute reference of the sayHello function. Something like;
app.setTimeOut("xfa.form.form1.Button1.sayHello()",2000);
You will have to work out the reference to your function in your particular case.
Regards
Bruce
Here is a sample to help you out....
Paul
Views
Replies
Total Likes
Thanks Bruce, I will try that and let you know the result.
Nith
Views
Replies
Total Likes
Thanks Paul, it works for me
Nith
Views
Replies
Total Likes
Views
Likes
Replies