aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Form work in IE, not Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Form work in IE, not Netscape" Watch "Form work in IE, not Netscape" New topic
Author

Form work in IE, not Netscape

Judy Herilla
Ranch Hand

Joined: Jan 05, 2001
Posts: 89
I am having a form like so...
<form name="editRoleForm" method="post">
I have two buttons, like so...
<input type=button value="Submit" onClick="check_length()">
<input type=button value="Cancel" onClick="doCancel()">
The two JavaScript functions work for IE.
Only the doCancel works on Netscape.
function doCancel() {
document.forms.editRoleForm.action = "/servlets/qml";
document.forms.editRoleForm.elements.PAGE.value = "getRoles";
document.forms.editRoleForm.submit();
}
For some reason...checkLength() doesnt work in Netscape.
It fails ot he first line referencing the form.
function check_length() {
document.forms.editRoleForm.elements.PAGE.value = "insertNewRole";

It gives this message on Netscape:
editRoleForm is not defined.
JavaScript Error: http://localhost:7001/servlets/qml, line
41:

Any ideas???
Thanks!

SCPJ2
Judy Herilla
Ranch Hand

Joined: Jan 05, 2001
Posts: 89
Well, for whatever reason, restarting weblogic seemed to do the trick.
 
 
subject: Form work in IE, not Netscape