473,382 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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:
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 1646
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.