C
Chris Moltisanti
Hey,
I am using the setTimeout() function in IE to pause the execution of
another funciton for a few seconds. My function is as follows:
funtion test(e) {
// the parameter 'e' is the event
// do something
}
in order to execute test(e) correctly I need to pass the 'e' event
parameter down in the setTimeout() function. However, from what I have
read IE (unlike Mozilla) doesn't allow you to pass parameters in
setTimeout(), unless those parameters are strings.
Therefore when I call setTimeout(test, 1000);
I am unable to use the param 'e' in my test() function.
Does anybody know of a way around this?
I'd appreciate any help. I've spent ages on this......it works in
Firefox but not IE.
Cheers,
Chris
I am using the setTimeout() function in IE to pause the execution of
another funciton for a few seconds. My function is as follows:
funtion test(e) {
// the parameter 'e' is the event
// do something
}
in order to execute test(e) correctly I need to pass the 'e' event
parameter down in the setTimeout() function. However, from what I have
read IE (unlike Mozilla) doesn't allow you to pass parameters in
setTimeout(), unless those parameters are strings.
Therefore when I call setTimeout(test, 1000);
I am unable to use the param 'e' in my test() function.
Does anybody know of a way around this?
I'd appreciate any help. I've spent ages on this......it works in
Firefox but not IE.
Cheers,
Chris