I'm messing around with building an application for the Palm Pre.
I have a simple question: How can I set up a timer for some code to get run after a certain amount of time has passed?
I tried using the regular old javascript setTimeout
, but it doesn't seem to work.
Here is what I've tried:
setTimeout(this.someFunction, 3000);
setTimeout('this.someFunction()', 3000);
Neither one seems to work. How can I accomplish this?