wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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

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";
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

Any ideas???

Judy Herilla
Ranch Hand

Joined: Jan 05, 2001
Posts: 89
Well, for whatever reason, restarting weblogic seemed to do the trick.
I agree. Here's the link: http://aspose.com/file-tools
subject: Form work in IE, not Netscape
Similar Threads
How to dispatch different web pages by clicking ddifferent buttons in Form
Urgent about javascript ,Thanks
calling java applet function from javascript works in IE,but not in netscape
Opening in a new window
Disabling form submission in IE and Firefox