473,473 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Ondblclick with Combobox not working in Firefox

2 New Member
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:
Expand|Select|Wrap|Line Numbers
  1.  
  2. <html>
  3. <head>
  4. <title>Hide Me</title>
  5. <script type="text/javascript">
  6. function xSwitchTxt(msg) {
  7.  
  8.     //alert(msg);
  9.     document.getElementById(msg+"EventOther").style.display='none';
  10.     document.getElementById(msg+"Event").style.display='block';
  11. }
  12. function xSwitchCombo(msg) {
  13.  
  14.    // alert(msg);
  15.    document.getElementById(msg+"Event").style.display='none';
  16.    document.getElementById(msg+"EventOther").style.display='block';
  17. }
  18. function xHide(msg) {
  19.    document.getElementById(msg).style.display='none';
  20. }
  21. </script>
  22. </head>
  23. <body>
  24. <table border="1" width="500">
  25.     <tr>
  26.         <td bgcolor="#FFFFCC">
  27.         <p align="center"><b><font size="4">Select your name.  </font></b></p>
  28.         <p align="center"><b><font size="4">If it's not there Double click the input box and enter.</font></b></td>
  29.     </tr>
  30.     <tr>
  31.         <td bgcolor="#CCFFCC"><form id="form1" name="form1" method="post" action="" >
  32. <p align="center"><br>
  33.  
  34. <select id="L1Event" name="L1Event" ondblclick="xSwitchCombo('L1');" size="1" >
  35. <option></option>
  36. <option>John</option>
  37. <option>Tony</option>
  38. </select></p>
  39. <p align="center">
  40. <input id="L1EventOther" name="L1EventOther" ondblclick="xSwitchTxt('L1');" size="30"><br>
  41. Double Click the input box to toggle between boxes</p>
  42. <script>
  43.                 xHide('L1EventOther');
  44.             </script>
  45.  
  46. </form></td>
  47.     </tr>
  48. </table>
  49.  
  50. </body>
  51. </html>
  52.  
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...John
Sep 12 '14 #1
1 1650
Johnb56
2 New Member
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
Sep 16 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: sonic_soul | last post by:
Hi, I was curious if I could make my webservice work with firefox client webservice functionality. (i got it to work with webservice.htc) I am able to get firefox to see my serverside web...
2
by: gabe garza | last post by:
This isn't a ASP.NET question, more of a HTML code question. I noticed that on Safari and Firefox on a MAC that when tabbing thru controls that it bypasses a combobox, but with IE on the MAC I...
3
by: TJS | last post by:
I am finding that the serverside requiredvalidator doesn't fire in the firefox browser, and user request proceeds through to my updateProfile method. Validation is working correctly in the IE...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
1
by: Simon Wigzell | last post by:
I'm using ondblclick in a text field to load a value from somewhere else into that field. Seem fine on everything except mac products. Any workaround or solution? Thanks!
8
by: Marcin Nowak | last post by:
Hi! I want to cancel up and down arrows in list (select) element. Here is the code: <script> function Arrows (event) { code = event.keyCode;
11
by: Beany | last post by:
hi, i have got my combobox working. The combobox allows users to select a mobile phone user and it automatically populates the form with the details such as imei number, phone number, issue date...
5
by: ApexData | last post by:
I have a ComboBox, when dblClicked, displays the combobox's row content in a continuous subform. Changes can be made to this content in the subform and then closed. The ComboBox needs to be...
3
by: geetha v | last post by:
Hi All, I need a scrolling DIV is a to display my dynamic tree in left frame. In my jsp , Div overflow is set to "auto" <DIV id=divScroller style="overflow:auto;height:200px"> <!--...
6
by: shailen21 | last post by:
Hi everybody, Im trying to use that piece of javascripts for 2 combo box in my web site but its nt working on Firefox but it works well in IE 6.0 :S Can someone please help me in solving this...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.