Hi Guys,
I have a form that adds a record to my database and the user
uses this to apply for membership.. there are some scripts that
check usernames ect... This all works in IE
But In firefox it fails when the Jacascript tries to submit
the form after it checks the fields are OK and it does nothing??
If i fill the form in with errors in my application my
javascript is running and picking up the errorrs and tells the user
and I have alerts in there now and I can see the javascript is fine
right up to the last line and its just the usuall way to submit a
form I guess??
Code:
// My checking function is here....
// If the script gets this far through all of your fields
// without problems, it's ok and you can submit the form
// If all was OK then this fires in the else statment...
else
{
event.returnValue=true;
alert('All Fields OK'); // alert just for my benifit to see
if im getting to this point.
document.form2.submit();
}
My script does its checks and the forms action has this to
add the record...
<form method="POST" action="<%=MM_editAction%>"
name="form2" id="form2">
So the user fills in my form and hits submit and nothing
happens unless you use Internet Explorer? In firefox I dont get the
alert box firing the message "'All Fields OK'" even though they are
all filled in OK and no form gets submitted??
If anyone can help me figure this out id be greatfull.
Thank you