WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 setTimeout bug in my Link Rotator, Guilherme Blanco, October 5, 2003
     Re:setTimeout bug in my Link Rotator, Erik Arvidsson, October 5, 2003

Subject: Re:setTimeout bug in my Link Rotator From: Erik Arvidsson Date: October 5, 2003
When using window setTimeout, 'this' will be bound to the window object.

window.setTimeout("findInstance(\"" + sId + "\").update()", 1000)

or

var oThis = this;
window.setTimeout( function () { oThis.update(); }, 1000 );

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX