Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript not working in Netscape

 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic