Ondblclick with Combobox not working in Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Johnb56
    New Member
    • Sep 2014
    • 2

    Ondblclick with Combobox not working in Firefox

    Hello Experts... I am using an ondblclick in a combo box and it works perfectly in IE but not in Firefox. I do not get an error code, it just doesn't work. here is the code:
    Code:
    <html>
    <head>
    <title>Hide Me</title>
    <script type="text/javascript">
    function xSwitchTxt(msg) {
    
        //alert(msg);
    	document.getElementById(msg+"EventOther").style.display='none';
    	document.getElementById(msg+"Event").style.display='block';
    }
    function xSwitchCombo(msg) {
    
       // alert(msg);
       document.getElementById(msg+"Event").style.display='none';
       document.getElementById(msg+"EventOther").style.display='block';
    }
    function xHide(msg) {
       document.getElementById(msg).style.display='none';
    }
    </script>
    </head>
    <body>
    <table border="1" width="500">
    	<tr>
    		<td bgcolor="#FFFFCC">
    		<p align="center"><b><font size="4">Select your name.  </font></b></p>
    		<p align="center"><b><font size="4">If it's not there Double click the input box and enter.</font></b></td>
    	</tr>
    	<tr>
    		<td bgcolor="#CCFFCC"><form id="form1" name="form1" method="post" action="" >
    <p align="center"><br>
    
    <select id="L1Event" name="L1Event" ondblclick="xSwitchCombo('L1');" size="1" >
    <option></option>
    <option>John</option>
    <option>Tony</option>
    </select></p>
    <p align="center">
    <input id="L1EventOther" name="L1EventOther" ondblclick="xSwitchTxt('L1');" size="30"><br>
    Double Click the input box to toggle between boxes</p>
    <script>
    				xHide('L1EventOther');
    			</script>
    
    </form></td>
    	</tr>
    </table>
    
    </body>
    </html>
    I am using Firefox ver: 31 on a win7 system

    This functionality is used when alternate data needs to be added to the database. The recommended list of selections reside in the combobox. The reason it is in an ASP extension, I have other ASP code working. I created the attached code for simplicity.
    Any assistance is greatly appreciated...J ohn
  • Johnb56
    New Member
    • Sep 2014
    • 2

    #2
    Is it normal that it takes more than four days to receive a response? So far 150 plus views and nothing. I would really appreciate some assistance.

    Thank you, John

    Comment

    Working...