please, post some js-code from where the error occurs ... you may also use a firefox and the firebug-extension to debug your scripts ...
kind regards ....
Hi... here are the code...
<SCRIPT language="JavaScript">function checkChecked() {
var len = del_frm.elements.length; var index=0;
for(index=0;index<len;index++)
{ if(del_frm.elements[index].name=='select_file')
{ if(del_frm.elements[index].checked==true)
{ confirmSubmit(); return true;
}} }
alert("Please select a file/folder to delete"); location.href="webfolder.cgi";
return true;}
<form name="del_frm" id="del_frm" action="webfolder2.cgi" onsubmit="return checkChecked()" method=post>
<input type="checkbox" name="select_file" value="example" id="checkbox">
</form>
This checkChecked() js function works well with ie6.. when i try to do it with mozilla 1.0.1 it does not work..
looking at the javascript console:
Error : del_frm is not defined
Any idea?