473,320 Members | 1,838 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,320 software developers and data experts.

Hidden Visibility in IE ? Code not working

Syl
Hello experts! I am a programmer but I have had very little
experience with JavaScript.

Can somebody *please* tell me why this is working in Netscape, but not
in IE :
http://checkeredshirt.com/form1.html

The checkbox is supposed to toggle a drop down menu.
Click checkbox --display drop down menu
Un-check checkbox --do not display drop down menu

Any tips, comments, advice, answers, haiku - would be very very
appreciated. I've already spent too much time trying to get this
sorted! (wierd behaviour in IE - if you click the checkbox, and then
immeditaley click *underneath* the checkbox in the browser window -
the drop down appears!)

THANKS!

Apr 20 '07 #1
2 2138
Syl said the following on 4/20/2007 12:28 PM:
Hello experts! I am a programmer but I have had very little
experience with JavaScript.

Can somebody *please* tell me why this is working in Netscape, but not
in IE :
http://checkeredshirt.com/form1.html

The checkbox is supposed to toggle a drop down menu.
Click checkbox --display drop down menu
Un-check checkbox --do not display drop down menu

Any tips, comments, advice, answers, haiku - would be very very
appreciated. I've already spent too much time trying to get this
sorted! (wierd behaviour in IE - if you click the checkbox, and then
immeditaley click *underneath* the checkbox in the browser window -
the drop down appears!)
IE doesn't fire the onchange event until an element loses focus. It
fires it when you click below (it could be above, beside, anywhere) it
blurs the element and fires the onchange.

Change your code from onchange to onclick.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 20 '07 #2
Syl
IE doesn't fire the onchange event until an element loses focus. It
fires it when you click below (it could be above, beside, anywhere) it
blurs the element and fires the onchange.

Change your code from onchange to onclick.
Argh!
Fantastic Randy - thanks so much for your answer. It worked
perfectly.

Thanks again.
Apr 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ritesh Shah | last post by:
Is there anyway in JavaScript to hide/show a textarea based on what radio button is selected? I am totally new to JavaScript and have no idea about any of it. Thanks.
4
by: NeverLift | last post by:
I've searched around and don't find the following incident discussed specifically. First, a comment from an experience programmer new to JavaScript: While I am new to javascript, I've...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
1
by: tabert | last post by:
I want to use JavaScript when a button is clicked to show and hide a SPAN or DIV. This works in both IE and Netscape, but what I'd like to happen is for there to be no white space where the hidden...
2
by: ckerns | last post by:
How can I check to see if a layer is visible? I have four layers and I want to check each to use in an if...then...else statement. tia
4
by: Lee David | last post by:
I want a description of each button to appear when you mouse over the button. This is working in IE, but not in NS. Here is the HTML: <div id="noticedesc" style="position:absolute; left:180;...
4
by: reikoshea | last post by:
okay ive been working at this for probably 4 hours now, and I (not to mention my boss) am pretty upset. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>...
1
by: msg2ajay | last post by:
hi, i am working on <div> i have to hide some part of the table. I am not able to hide that table part can anybady tell me where is the error. <html> <head> <script...
2
by: Spizzat2 | last post by:
I've got a web page with some hidden elements that can be shown through various methods. What I'd like is, when the user tries to copy the visible stuff on the page, it doesn't copy the hidden...
4
by: vershner | last post by:
HI there, is it possible to make an element hidden, then make it visible again in the same function? I have a number of elements, only one of which should be visible at any time. The users can...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.