I wonder if anybody has come across this problem before...
I have a page with a form, when this is submitted, it is "Error checked"..
If everything is filled in correctly then the form should be submitted, however, when the the form is submitted, I get an error saying "Error: Access is Denied Code:0".
The code used is below....
function valcheckdate(objName,formname){
if (checkdate(objName) == true) {
error = 0;
if (formname.CheckRef.value != "VS"+vscodecss+vscodedd+vscodemm+vscodeyy) error = 1;
if (formname.CheckersName.value.length < 4) error = 3;
if (formname.CheckersName.value == "FM Name") error = 5;
if (error == 1){
formname.CheckRef.value = "VS"+vscodecss+vscodedd+vscodemm+vscodeyy;
alert ("Check Ref has been reset and can not been changed");
}
if (error == 3) alert ("Checkers Name must be entered");
if (error == 5) alert ("You must Change Checkers Name to Your Name");
if (error == 0) formname.submit() ;
Everything works up to the formname.submit(), I have proved this by changing the submit to an alert box which works fine...
Andy ideas???
Aqua-Soft Forums