[Greasemonkey] Function oing out of scope?

Daniel Sheets sheets.d at gmail.com
Mon May 22 00:46:35 EDT 2006


function playThrough()
{
  unsafeWindow.ShowForward();
  timer = setTimeout("playThrough()", 1000);
}

I get an error saying "playThrough is not defined". I'm assuming that its
going out of scope before the next timer event.
How can I keep it from doing that? I need this loop to go on and on until I
stop it.

Thanks!


More information about the Greasemonkey mailing list