Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20055

Re: onmouseup IE9

Message-ID <29791032.XE3BKoFSiS@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-05-30 12:12 +0200
Subject Re: onmouseup IE9
Newsgroups comp.lang.javascript
References <0cCdnbushMARIjvMnZ2dnUVZ_oCdnZ2d@westnet.com.au> <PdWdnT07Iu-gXjvMnZ2dnUVZ_sqdnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> On 30/05/2013 12:54 PM, Andrew Poulos wrote:
>> With the test page:
>>
>> <!DOCTYPE html>
>> <html>
>> <head>
>> <meta charset="UTF-8">
>> <title>Test</title>
>> <style = type="text/css">
>> body {
>>    font-family:Verdana, Geneva, sans-serif;
>>    font-size:0.8em;
>> }
>> </style>
>> <script type="text/javascript">
>> function down() {
>>    document.getElementById("me").innerHTML += "--- Down ";
>> }
>> function up() {
>>    document.getElementById("me").innerHTML += "Up --- ";
>> }
>> document.onmousedown = down;
>> document.onmouseup = up;
>> </script>
>> </head>
>> <body>
>>    <p id="me" style="text-align:center;">Starts here:<br></p>
>> </body>
>> </html>
>>
>> onmouseup will fail to trigger in IE 9 by dragging the pointer to an new
>> location and waiting a second or two before releasing the left mouse
>> button. I couldn't get IE 7 or 8 (or any other browser) to fail in this
>> manner. How can I get IE 9 to behave?
> 
> Here's a bit more info. It works when the pointer stays as an arrow but
> fails when (for some reason) the pointer changes to a circle with a
> diagonal line through it.

That cursor shape indicates that the element is not a proper drag-and-drop 
target.  You are using HTML5 which is (partially) supported from IE/MSHTML 9 
on.  There are specific events for drag-and-drop, and they have been 
standardized with HTML5; use your current approach only as a fallback.

-- 
PointedEars

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

onmouseup IE9 Andrew Poulos <ap_prog@hotmail.com> - 2013-05-30 12:54 +1000
  Re: onmouseup IE9 Andrew Poulos <ap_prog@hotmail.com> - 2013-05-30 13:10 +1000
    Re: onmouseup IE9 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-30 12:12 +0200
      Re: onmouseup IE9 Andrew Poulos <ap_prog@hotmail.com> - 2013-05-31 08:28 +1000
        Re: onmouseup IE9 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-31 15:12 +0200
          Re: onmouseup IE9 Andrew Poulos <ap_prog@hotmail.com> - 2013-06-01 18:36 +1000
            Re: onmouseup IE9 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-01 11:55 +0200

csiph-web