• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help needed !! NS6 --> IE and NS4

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the java script code equvalent to this
___________________________________________________________
var index = document.form.select.selectedIndex;
var clientName = document.form.select.options[index].value;

form is html form,
select is a select box
___________________________________________________________

that work in internet explorer and netscape 4.5

tnx n bubye

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That looks like it should work in those browsers. I do not have them on my computer to test nor will I ever have them on my computer. I am guessing your company is requiring you to do this even thought less that 1% of users use those browsers.

Eric
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Soundra,
That code should work in IE.

You need to rewrite it for NS 4.7 to loop through the select list and see which option is selected:


We still have to support NS 4.7 too. Hopefully not for much longer. I suggest checking to see that there is a valid reason for supporting NS 4.7. If there is, make sure to comment all NS 4.7 code so it is easy to find/delete when no longer supporting this browser.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic