J
J-P-W
Hi,
function Validate()
{
if (document.frmRegister.TermsAgreed.checked)
{
document.all.ShowImages.style.display='block';
document.all.UserHeaderHTML.disabled=false;
document.all.UserFooterHTML.disabled=false;
document.all.ShowText.style.display='block';
document.all.UserHeaderFileName.disabled=false;
document.all.UserFooterFileName.disabled=false;
alert('Development note - while error trapping - this form normally
be submitted now, but actually not for now!');
return false;
}
else
{
alert('You must tick the box to show that you agree to the terms and
conditions.');
return false;
}
}
If the TermsAgreed is not ticked [checked] I get alerted and the form
does not submit.
If I tick [check] it then the various bits of script don't run and the
page submits.......
Unless I'm using IE (7 or 8) Chrome and Firefox refuse to run the code
and just submit the form.
Any thoughts?
Greatful thanks
Jon
function Validate()
{
if (document.frmRegister.TermsAgreed.checked)
{
document.all.ShowImages.style.display='block';
document.all.UserHeaderHTML.disabled=false;
document.all.UserFooterHTML.disabled=false;
document.all.ShowText.style.display='block';
document.all.UserHeaderFileName.disabled=false;
document.all.UserFooterFileName.disabled=false;
alert('Development note - while error trapping - this form normally
be submitted now, but actually not for now!');
return false;
}
else
{
alert('You must tick the box to show that you agree to the terms and
conditions.');
return false;
}
}
If the TermsAgreed is not ticked [checked] I get alerted and the form
does not submit.
If I tick [check] it then the various bits of script don't run and the
page submits.......
Unless I'm using IE (7 or 8) Chrome and Firefox refuse to run the code
and just submit the form.
Any thoughts?
Greatful thanks
Jon