schotte
08-09-2009, 08:16 PM
Hey all,
as I mentioned in the title, I've an issue getting setTimeout to work inside a plugin I am developing.
$.Plugin = function(obj,opt)
{
init();
function init() { ... };
function heartbeat() { ... };
setTimeout('heartbeat();', 1000);
}
Error: heartbeat is not defined
Anyone dealt with this before?
Cheers
as I mentioned in the title, I've an issue getting setTimeout to work inside a plugin I am developing.
$.Plugin = function(obj,opt)
{
init();
function init() { ... };
function heartbeat() { ... };
setTimeout('heartbeat();', 1000);
}
Error: heartbeat is not defined
Anyone dealt with this before?
Cheers