aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes JS in Firefox works fine but not in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JS in Firefox works fine but not in IE" Watch "JS in Firefox works fine but not in IE" New topic
Author

JS in Firefox works fine but not in IE

Jai Parmar
Greenhorn

Joined: Dec 02, 2005
Posts: 8
Hello all,
I cant seem to find the problem with my javascript.
I cannot retrieve the value from my drop down menus as they are empty when added to a list box in IE6.
It seems to work fine in Firefox 1.5, but doesnt in IE6
coudld someone tell me how to fix it? or something else i can do to resolve the problem. I have included the entire javascript in question.
Thanks
Jai

This is the Javascript Code
2 Dropdown menu's named and id'd as "therapy" and "therapist".
This seems to be the problem specifically.

Thanks

[ December 16, 2005: Message edited by: Jai Parmar ]
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Hi,
if therapy and tharepist are dropdowns, instead of

formObject.therapy.value
formObject.therapist.value

try to use

formObject.therapy.options[formObject.therapy.selectedIndex]
formObject.therapist.options[formObject.therapist.selectedIndex]
Jai Parmar
Greenhorn

Joined: Dec 02, 2005
Posts: 8
Thanks for the response.
Sadly that didnt actually work i still get the same situation occuring.
even if i do this



it still doesnt work?

do you think its something to do withe the javacscript version that IE uses?
Jai
Jai Parmar
Greenhorn

Joined: Dec 02, 2005
Posts: 8
Please could someone help me with this issue!
 
Consider Paul's rocket mass heater.
 
subject: JS in Firefox works fine but not in IE