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


Groups > comp.lang.javascript > #20055

Re: onmouseup IE9

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <29791032.XE3BKoFSiS@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Mail-Copies-To usenet@PointedEars.de
Organization PointedEars Software (PES)
Date Thu, 30 May 2013 12:12:25 +0200
User-Agent KNode/4.10.2
Content-Transfer-Encoding 7Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: onmouseup IE9
Newsgroups comp.lang.javascript
References <0cCdnbushMARIjvMnZ2dnUVZ_oCdnZ2d@westnet.com.au> <PdWdnT07Iu-gXjvMnZ2dnUVZ_sqdnZ2d@westnet.com.au>
MIME-Version 1.0
Lines 48
NNTP-Posting-Date 30 May 2013 12:12:27 CEST
NNTP-Posting-Host ec1ca705.newsspool4.arcor-online.net
X-Trace DXC=PAbWWK549WlOKO]LCQ@0g`4IUK<Cl32<a4Fo<]lROoRa8kF<OcfhCOkI43oL[SkIcnDZm8W4\YJNlb@mF9jNikdeIQbgJMhLo0gAKhU>[f\eao
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:20055

Show key headers only | 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