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


Groups > comp.lang.javascript > #20064

Re: onmouseup IE9

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

Show all headers | View raw


Andrew Poulos wrote:

> On 30/05/2013 8:12 PM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> On 30/05/2013 12:54 PM, Andrew Poulos wrote:
>>>> <!DOCTYPE html>
>>>> <html>
>>>> <head>
>>>> […]
>>>> <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.
> 
> […] Unfortunately I didn't find IE9 behaving any better [with ondragend].
> That is, the onmousedown would always trigger and the onmouseup and
> ondragend would not always trigger.
> 
> Well-referenced sites like
> <http://www.thecssninja.com/demo/gmail_dragout/>
> fail in IE9 with "show errors" on :-(

“"show errors" on”?  And the referenced site uses HTML5-specific techniques 
that need not to work in IE 9.

Please post the public URI and a more detailed explanation of a reduced test 
case that demonstrates *your* problem.

And *please* trim your quotes.

-- 
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