JavaScript window.SetTimeout to a JavaScript Class method or function with parameters?
Posted by: Rick Strahls WebLog,
on 28 Mar 2006 |
View original | Bookmarked: 0 time(s)
Here's one I've been struggling with for a bit now. I need to make a setTimeout() call to a method or function inside of a class and pass a parameter. Say I'm in a method and inside of that method I need to fire a request to do delayed execution of another method in the same class.
Outside of classes you can do this:
if (Timeout && Timeout > 0)
window.setTimeout("HideToolTip('" + ControlId + "')",Timeout);
This works fine with plain global functions....