B
bbxrider
the onreset is working but problem somewhere in the onsubmit or the function
it calls.
i have abbreviated the called verfiy function for now just to get the basic
onsubmit part working
basically the screen just gives a flash and it also alters the initial html
code after the form tag,
which seems really weird to me
this is kind of long but pretty basic i think
need some help please
onsubmit and reset code:
<FORM onSubmit="
this.firstname.optional=true;
this.lastname.optional=true;
this.addr1.optional=true;
this.city.optional=true;
this.state.optional=true;
this.zip.min=0;
this.zip.max=99999;
this.homephone.optional=true;
this.email.optional=true;
return verify(this);
"
onreset = "
return confirm('do you really want to erase '+
'everything entered and start over from scratch?');
"html code for the form, the verify function is after all the html code
the verify function:
<script languauge="javascript">
function verify(f)
// verifies all the fields set for verification and messages
{
if confirm('this will return true(ok) or false(cancel)' {
return true;
else
return false;
}
var msg;
var empFld = "";l
var errors = ""
...............lots more verification code here once i can at least get a
confirm to display
}
it calls.
i have abbreviated the called verfiy function for now just to get the basic
onsubmit part working
basically the screen just gives a flash and it also alters the initial html
code after the form tag,
which seems really weird to me
this is kind of long but pretty basic i think
need some help please
onsubmit and reset code:
<FORM onSubmit="
this.firstname.optional=true;
this.lastname.optional=true;
this.addr1.optional=true;
this.city.optional=true;
this.state.optional=true;
this.zip.min=0;
this.zip.max=99999;
this.homephone.optional=true;
this.email.optional=true;
return verify(this);
"
onreset = "
return confirm('do you really want to erase '+
'everything entered and start over from scratch?');
"html code for the form, the verify function is after all the html code
the verify function:
<script languauge="javascript">
function verify(f)
// verifies all the fields set for verification and messages
{
if confirm('this will return true(ok) or false(cancel)' {
return true;
else
return false;
}
var msg;
var empFld = "";l
var errors = ""
...............lots more verification code here once i can at least get a
confirm to display
}