
August 22nd, 2000, 01:27 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
OnChange Event - NEtscape and IE.
<i><b>Originally posted by : Padmaja Tallavajhala (coolpersona@hotmail.com)</b></i><br />The code works fine with IE but not with Netscape. Instead I get a null value reflected in the text<br />box below. Please help me with any ideas as to how to make the code more browser compatible.<br /><br />The code can pasted it in any file in Visual Interdev.<br /><br />Help Needed,<br />Thanks,<br />Padmaja.<br /><br />------------------------------------------------------------------------------------------------------------------<br /><br /><HTML><br /><HEAD><br /><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><br /><script language="javascript"><br />function valueChange()<br />{<br /> var myIndex = document.frm2ndDestination.SendTo.selectedIndex;<br /> if (myIndex == 0)<br /> {<br /> alert("
You must make a selection from the drop down menu.");<br /> document.frm2ndDestination.SendTo.focus;<br /> }<br /> else<br /> { <br /> document.frm2ndDestination.results1.value = document.frm2ndDestination.SendTo.value;<br /> }<br /> <br />}<br /></script><br /></HEAD><br /><BODY><br /><form name="frm2ndDestination"><br />Submit To:<br /><SELECT name="SendTo" onchange="valueChange()" style="HEIGHT: 25px; WIDTH: 235px"><br /><Option Selected value="">Travel Adminstrator</option><br /><Option value="pcavali@dreeshomes.com" >Corporate: Padmaja Chavali</option><br /><option value="rheath@dreeshomes.com" >Southern: Robin Heath</option><br /></select><br /></center><br /><input type="text" name="results1"></input><br /><P> </P><br /></form><br /></BODY><br /></HTML><br /><br />
|