This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript not working in 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 "JavaScript not working in Netscape" Watch "JavaScript not working in Netscape" New topic
Author

JavaScript not working in Netscape

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67


if the javascript that i am using in my JSP page. Incidentally i have two fields as you can see. I am calling the function and the function seems to be called correctly as i get the alert message. However my other alert does not seem to be working nor is the location.href. Any idea on why and if i have done something wrong please point it out.

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Quick glance by me:

document.FormName.ElementName.value

not

FormName.elementName.value

IE allows you to get away with it by their document model...

Eric
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Just wondering where is that alert?
However my other alert does not seem to be working

Also, by "not working", do you mean you get JavaScript error?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I saw this too:

document.location.href

not

location.href

also it would be better if you showed us the gernerated source code and not the source code with the server side tags in it. Do this by viewing the source code on the browser.

Eric
 
Consider Paul's rocket mass heater.
 
subject: JavaScript not working in Netscape
 
Similar Threads
Problem with UTF-8 Character encoding
How to detect escape key press in browser
ajax and servlet problem
can't access iframe variable but can call iframe method
jsp with javascript