More code would be helpful, but as a guess, if you're using the onSubmit
form event to call the validation function, then you end the function with
'document.mydata2.submit();' you're getting stuck in an endless loop.
Greg
-----Original Message-----
From: e0126763@s... [mailto:e0126763@s...]
Sent: Wednesday, June 12, 2002 9:16 AM
To: javascript
Subject: [javascript] document.submit
Hello,
I have a form which is validated using a javascript function and this
validation is correct.
According to the validation result, a window is opened where the user can
choose 'yes' or 'no' to the changes.
If the user chooses 'yes' then the form should be submited and this final
part of the function is not working.
The code I'm using is something like this :
function validate_form2(){
//if maxMinutes is changed
window.open("alert_.......
//if intensity is changed
window.open("alert_.......
if 'yes'
document.mydata2.submit();
}
The mydata2 form is in the page that has the validate_form2 function.
All I want is to submit the form located in the page that opens a new
window.
I'm not sure if made it clear or not. Hopefully someone out there can
provide some directions.
I thank you for your time,
Joel
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20