normbry
asked on
setTimeout problem
Hello,
At the bottom of this page:
http://www.samengoedkoopbellen.nl/
is a link that pops a window and a form. On submission, a setTimeout is fired which is implemented to combat the tragically long CGI delays at this client's server. However, the setTimeout is not firing. The delays are quite long.
Can you spot where things go awry?
Thanks
Init timers in the index.htm, not in the framed pages !!
ASKER
Pardon me? Could you elaborate somewhat, Win32?
Thanks,
NBB
Thanks,
NBB
Why on earth don't you put it before the
document.form1.submit()
in senddata???
Anyway, I do get the dank, but not within 5 seconds
Michel
document.form1.submit()
in senddata???
Anyway, I do get the dank, but not within 5 seconds
Michel
Try for fun to add
alert('submitting');
just in front of
document.form1.submit()
I wonder if the validation script sucks (since it is not one of mine ;-)
Michel
alert('submitting');
just in front of
document.form1.submit()
I wonder if the validation script sucks (since it is not one of mine ;-)
Michel
ASKER
What do you mean with that forst post, man?
Please change
document.form1.submit()
in function senddata
to
setTimeout('parent......', 5000);
document.form1.submit()
why do you execute a function in a hidden frame instead of the location change directly???
setTimeout('top.location=\ 'dank.html \'',5000);
document.form1.submit()
Michel
document.form1.submit()
in function senddata
to
setTimeout('parent......',
document.form1.submit()
why do you execute a function in a hidden frame instead of the location change directly???
setTimeout('top.location=\
document.form1.submit()
Michel
ASKER
Michel, ik vind 't erg nobel van je, maar please don't try to educate me. Die snippets hierboven, ik heb geen idee wat ik nou moet doen. Ok, ik moet e.e.a. veranderen, maar wat is dat tweede gedeelte??
Ik wil geen JS proberen te doen, want er gaat te veel tijd inzitten - simpelweg omdat het zwoegen is voor me. En als ik dan wat probeer, dan krijg je dergelijke technische fouten als hierboven. Kortom, ik KAN het niet. Kun je 't a.u.b. uitstippelen voor me?
Hopeloosje.
Ik wil geen JS proberen te doen, want er gaat te veel tijd inzitten - simpelweg omdat het zwoegen is voor me. En als ik dan wat probeer, dan krijg je dergelijke technische fouten als hierboven. Kortom, ik KAN het niet. Kun je 't a.u.b. uitstippelen voor me?
Hopeloosje.
In europe.html, please locate the script:
alert(error_message)
} else {
document.form1.submit()
}
change it to
alert(error_message)
} else {
setTimeout('parent.hidden. go()',5000 )
document.form1.submit()
}
and remove the
onSubmit="setTimeout('pare nt.hidden. go()',5000 )"
from the form
Michel
alert(error_message)
} else {
document.form1.submit()
}
change it to
alert(error_message)
} else {
setTimeout('parent.hidden.
document.form1.submit()
}
and remove the
onSubmit="setTimeout('pare
from the form
Michel
ASKER
Trying....
In europe.html, please locate the script:
alert(error_message)
} else {
document.form1.submit()
}
change it to
alert(error_message)
} else {
setTimeout('parent.hidden. go()',5000 )
document.form1.submit()
}
and remove the
onSubmit="setTimeout('pare nt.hidden. go()',5000 )"
from the form
Michel
alert(error_message)
} else {
document.form1.submit()
}
change it to
alert(error_message)
} else {
setTimeout('parent.hidden.
document.form1.submit()
}
and remove the
onSubmit="setTimeout('pare
from the form
Michel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Bedankt dus.
Groetjes
NBB
Groetjes
NBB