need help with netscape and onsubmit event !

wxdqz

New Member
i try to code a form validation function, in ie 6 and opera 7
everything works fine, but netscape 6 ignores the onsubmit event.

<form name="myform" action="dummyaction" method="post"
onsubmit="alert('sdf'); return false;">
this code work on netscape, but when i change to :

<form name="myform" action="dummyaction" method="post"
onsubmit="return checkFields(this, elements, criteria);">

it ignores the onsubmit event, whereas ie and opera don't.

when i save the page to local hard drive, netscape invokes the
"checkFields()" function, but on the server the same function and same
code does not work.

(when i right click the page the 'view page source' command is
disabled in netscape. could it have something to do with it and how
can i enable it ?)

here's my code:

<head>
<title>...</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-9">
<SCRIPT language="javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"..../sskSBB.js"></SCRIPT>
</head>
<body marginwidth="0" marginheight="0">
....
<script language="javascript">
var elemanlar = new Array("DS_U","DS_A","DS_P","PMOS","MOHS","SYS","YGS","YHS","AKS_KOS_H","AKS_KOS_G","AKS_KMS_H","AKS_KMS_G");
var kriterler = new Array(
new Array("gt=0","lt=50","numeric"),
new Array("gt=0","lt=50","numeric"),
new Array("gt=0","lt=50","numeric"),
new Array("gt=0","lt=50","numeric"),
new Array("gt=0","lt=90000","numeric"),
new Array("gt=0","lt=10000","numeric"),
new Array("gt=0","lt=32","numeric"),
new Array("gt=0","lt=10000","numeric"),
new Array("gt=-1","lt=50","numeric"),
new Array("gt=-1","lt=50","numeric"),
new Array("gt=-1","lt=250","numeric"),
new Array("gt=-1","lt=250","numeric"));
</script>
<form name="ameliyathaneForm" action="dummy" method="post"
onsubmit="return checkFields(this, elemanlar, kriterler);">
// form elements
</form>
</body>
</html>

any help is really appreciated !
thanks in advance
 
Back
Top