PDA

View Full Version : setTimeout and XMLHttpRequest



hiatrale
09-17-2009, 05:47 AM
Hello

On this script:

http://www.dynamicdrive.com/dynamicindex17/interstitial.js

changing this:


if (interstitialBox.launch)
interstitialBox.initialize()

to this:


if (interstitialBox.launch) {
setTimeout('interstitialBox.initialize()',5000);
}

Breaks it!

I think its the ajaxconnect:function.

Any idea?