File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form work in IE, not Netscape
 
Similar Threads
Urgent about javascript ,Thanks
calling java applet function from javascript works in IE,but not in netscape
Disabling form submission in IE and Firefox
Opening in a new window
How to dispatch different web pages by clicking ddifferent buttons in Form