Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onChange Netscape Issue

Status
Not open for further replies.

Esoteric

ISP
Feb 10, 2001
93
US
This works with IE but not with Netscape has anyone run into this?

// Here is the JavaScript - Remember works with IE

function change2Txt(v)
{
types = [&quot; &quot;, &quot;<%=strvar2%><%=strvar6%>&quot;];
types2 = [&quot; &quot;, &quot;<%=strvar3%>&quot;];
types3 = [&quot;&quot;, &quot;<%=strvar4%>&quot;];
qty2Div.innerHTML = types[v];
qty3Div.innerHTML = types2[v];
qty4Div.innerHTML = types3[v];
}

// Here is the Select Box
<select onChange='change2Txt(this.selectedIndex)' name=type>
<option value=&quot;Standard&quot; selected>Standard</option>
<option value=&quot;Futures&quot;>Futures</option>
</select>

// Here is the result <DIV>'s
<div id='qty2Div'> </div>
<div id='qty3Div'> </div>
<div id='qty4Div'> </div>

Basically, based on the first option the screen updates itself with more options. Works great in IE, simply awesome but now I got some Netscape users and no luck! Any help you can provide would be great.
 
instead of referring to qty2Div.innerHTML the way you do try using document.getElementById(&quot;qty2Div&quot;).innerHTML instead.


I hope this helps. Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top