joshie76

msg:611146 | 9:00 am on Jun 27, 2001 (gmt 0) |
I think this is what you are trying to do. function available(newLoc) { alert(document.frm[newLoc].selectedIndex) //or whatever i.e. newcolor = etc.. etc.. } <form name="frm"> <select name="COLOR[1]" onChange="available('COLOR[1]')"> <OPTION value="0">0</OPTION> <OPTION value="1">1</OPTION> <OPTION value="2">2</OPTION> </SELECT> </form> When passing the name of the element in the available function it needs to be in ''; otherwise it thinks you are passing a variable (which hasn't been defined). Personally I would pass the whole object using onChange="available(this)" and pull it out in JS with newLoc.selectedIndex I have only tried this in IE5 and it may not be what you were talking about in the firstplace - hope it was ;)
|
David

msg:611147 | 2:00 pm on Jun 27, 2001 (gmt 0) |
Thanks for the help, That works on all browsers. Now my problem is the rest of my function does not work on Netscape 6 or opera. How would you write. to a div tag with an ID named fillit
|
Brett_Tabke

msg:611148 | 2:03 pm on Jun 27, 2001 (gmt 0) |
I've heard that style applied to forms is not going to be supported by either Opera or Moz 1 or NN 6
|
David

msg:611149 | 2:25 pm on Jun 27, 2001 (gmt 0) |
Thats to bad done right you can warm up some of the form elements and help pull the page design together. I like the things you can do with the submit button. Opera does accept the font:weight I was hoping the rest would come. What I am tring to do is write to a absolute positioned div/layer.
|
David

msg:611150 | 3:12 pm on Jun 27, 2001 (gmt 0) |
I got netscape 6 to work. I keep forgetting in many cases netscape 6 is not netscape. I tested for document.layers instead of "Netscape" and now the whole family works. I wonder why Opera doesn't like it.
|
|