Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20100
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <2215970.Xz8ohhYffB@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Sat, 01 Jun 2013 11:55:40 +0200 |
| User-Agent | KNode/4.10.2 |
| Content-Transfer-Encoding | 8Bit |
| 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> <29791032.XE3BKoFSiS@PointedEars.de> <hrudnWGT0oQ2TzrMnZ2dnUVZ_oydnZ2d@westnet.com.au> <6560842.YUYWtJiLuI@PointedEars.de> <PpmdncSNlPs8LzTMnZ2dnUVZ_vqdnZ2d@westnet.com.au> |
| MIME-Version | 1.0 |
| Lines | 114 |
| NNTP-Posting-Date | 01 Jun 2013 11:55:44 CEST |
| NNTP-Posting-Host | ec955509.newsspool1.arcor-online.net |
| X-Trace | DXC=9LAi4h@V4L8=FQB?mjjV50ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@0>32E0LlHXP;DZm8W4\YJN<b@mF9jNikd5IQbgJMhLo07<lHc;8^X@[< |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:20100 |
Show key headers only | View raw
Andrew Poulos wrote:
> On 31/05/2013 11:12 PM, Thomas 'PointedEars' Lahn wrote:
>> 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?
>>>>> […] 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, andthey 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
>
> Tools > Internet Options > Advanced > Display a notification about every
> script error
So, what script errors are you getting and when *exactly* do they occur
there?
>> that need not to work in IE 9.
>
> Hmm, the page has a HTML4 type doctype
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
While it is possible that the wrong doctype/DOCTYPE declaration may have an
effect, this test case is designed around dragging elements out of the
browser, to the desktop, and uses advanced features that are not required
for drag-and-drop. Drag-and-drop example code and test cass for IE 9 would
be found in the MSDN Library:
<http://msdn.microsoft.com/en-us/library/ff974339(v=vs.85).aspx>
>> Please post the public URI and a more detailed explanation of a reduced
>> test
>
> The full HTML that I'm testing is posted above. Click, drag, release
> tens of times and the problem will eventually occur.
The HTML code above does not show how you are using “ondragend”. Also, you
should not be modifying the document in this way in your tests to avoid side
effects. Use console.log(); IE 9 supports it with the error console (F12)
displayed.
>> case that demonstrates *your* problem.
>
> I'm finding it works a bit better (its harder to make it fail) if I
> instead of document.onmouseup I use document.documentElement.onmouseup .
Probably a good idea, although the question remains why you would not
primarily use W3C DOM Level 3 Events. IE 9 in Standards Mode suports it.
Make sure that you are not viewing in Compatibility Mode (button next to the
Address Bar input).
> Thanks for your help but I'm starting to think its an IE issue.
I think that once again you have not thought this through. For if drag-and-
drop problems in IE 9 were as common as your posting suggests, it would be
common knowledge by now (according to Net Applications¹, on desktops IE 9
has had a top market share of 21.67% in February 2013 [W3Counter²: 13.1% in
November 2012] and still has a market share of 15.39% [W3Counter: 7.37%];
both count unique visitors per site, by contrast to e.g. StatCounter³ which
counts pageviews).
Please *read* and *take heed of*
<http://www.catb.org/~esr/faqs/smart-questions.html>
_______
¹ <http://www.netmarketshare.com/>
² <http://www.w3counter.com/> (not affiliated with the W3C)
³ <http://gs.statcounter.com/>
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll 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