Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-30-2006, 11:53 PM   PM User | #1
MichaelCL
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
MichaelCL is an unknown quantity at this point
Internet Explorer JavaScript: onclick=hide the caller

Hi!

this:

<input type="button" onmouseup="this.style.display='none';" value="clickMe" />

causes IE to stop responding to (nearly) all mouse input. Including IE's own menu bar. Reloading the page stops the problem. Generating virtual clicks on other objects does not.

Does anybody here understand why this happens and how I can prevent it from happening? I realise the form presented here has no use whatsoever but on my page it makes sense
MichaelCL is offline   Reply With Quote
Old 12-31-2006, 01:23 AM   PM User | #2
Arty Effem
Banned

 
Join Date: May 2006
Location: England
Posts: 664
Thanks: 0
Thanked 84 Times in 84 Posts
Arty Effem can only hope to improve
Quote:
Originally Posted by MichaelCL View Post
Hi!

this:

<input type="button" onmouseup="this.style.display='none';" value="clickMe" />

causes IE to stop responding to (nearly) all mouse input. Including IE's own menu bar. Reloading the page stops the problem. Generating virtual clicks on other objects does not.

Does anybody here understand why this happens and how I can prevent it from happening? I realise the form presented here has no use whatsoever but on my page it makes sense
Seems to be just the mouseup event. It's O.K. using onclick or onmousedown. Do you need to use mouseup?
Arty Effem is offline   Reply With Quote
Old 12-31-2006, 01:34 AM   PM User | #3
MichaelCL
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
MichaelCL is an unknown quantity at this point


I never even thought of that...

I guess onclick will just have to do
Thanks! I started using onmouseup because someone suggested this would give you the ability to cancel clicks by holding the button down, moving the cursor off the button and then releasing again. But as far as I can see that functionality is already present... Leaves me wondering what mouseup is for then

Thanks!
MichaelCL is offline   Reply With Quote
Old 12-31-2006, 02:55 AM   PM User | #4
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
mouseup is useful for drag and drop.

david_kw
david_kw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:22 PM.


Advertisement
Log in to turn off these ads.