File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JS in Firefox works fine but not in IE

 
Jai Parmar
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 413
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please could someone help me with this issue!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic