Guest_imported
New member
- Jan 1, 1970
- 0
I have this problem where the html form reset in netscape is delayed somehow and executed after the statements that follow it in the code.
Ex.
1.- form.reset();
2.- write some value to a form field.
Well, statement 2 gets executed before the browser resets the form.
I know about doing puttint statement (2) inside a setTimeout call. This works ok except that in my case, functions are nested enough so that the setTimeout causes some side effects that lead me to a worse scenario.
I am wondering if there is any other solution to this problem other than the setTimeout one?
Thanks in advance
Ex.
1.- form.reset();
2.- write some value to a form field.
Well, statement 2 gets executed before the browser resets the form.
I know about doing puttint statement (2) inside a setTimeout call. This works ok except that in my case, functions are nested enough so that the setTimeout causes some side effects that lead me to a worse scenario.
I am wondering if there is any other solution to this problem other than the setTimeout one?
Thanks in advance