|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Browser problem with code.
<i><b>Originally posted by : Padmaja Tallavajhala (coolpersona@hotmail.com)</b></i><br />Hi every one out there,<br /><br />The following code works well with IE but when I experiment it with Netscape, I get the word 'null'<br />in the text box. This code can be tested on your machine. Please do help as what could I be missing.<br /><br />Hoping to hear from you soon,<br />Padmaja.<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 /> return true;<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 /> |
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : classy (admin@classytech.com)</b></i><br />what about this?<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 obj=document.frm2ndDestination.SendTo;<br /> var myval = obj.options[obj.selectedIndex].value;<br /> if(myval == "")<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 = obj.options[obj.selectedIndex].value;<br /> return true;<br /> }<br /><br />}<br />//--><br /></script><br /></HEAD><br /><BODY><br /><form name="frm2ndDestination"><br />Submit To:<br /><SELECT name="SendTo" onchange="javascript: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 /> |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Browser problem with code. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|