Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #4135
| Message-ID | <2978191.SPkdTlGXAF@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-07-13 12:53 +0200 |
| Subject | Re: know its ipad |
| Newsgroups | comp.lang.javascript |
| References | (5 earlier) <ivin7b$o09$1@dont-email.me> <0tWdnZXtqdlWroDTnZ2dnUVZ_jadnZ2d@westnet.com.au> <26eef53d-aee6-4162-88fc-4855bd51a555@p10g2000prf.googlegroups.com> <4f034459-6218-4cd1-8125-1b9b70da4b2c@j9g2000prj.googlegroups.com> <fuudnQFKubzq1YDTnZ2dnUVZ_hSdnZ2d@westnet.com.au> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Andrew Poulos wrote:
> RobG wrote:
>> On Jul 13, 4:29 pm, RobG<rg...@iinet.net.au> wrote:
>> [...]
>>> You should be testing for touch support, not what the device is.
>>
>> Because I know you're going to ask:
>>
>> Detecting support for event types
>> <URL:
>>
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/93e05bc723164080/17d5759265e496fe?lnk=gst&q=detect+touch+support#17d5759265e496fe
>
> So a browser that supports touch events won't claim to support touch
> events when the browser is on a device that can't send touch events. Is
> that true?
This is rather hard to test as the number of browsers that run on both
desktop and mobile devices is small.
It is at least true for touch events in (Desktop) Safari 5.0.5 (Mac OS X
10.6.8 on a MacBook Pro) vs. Mobile Safari 5.0.2 (iOS 4.2.1 [8C148] on an
iPhone 3G). The former throws an exception for
document.createEvent("TouchEvent") – "Error: NOT_SUPPORTED_ERR: DOM
Exception 9" –, the latter does not.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar
know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-12 14:35 +1000
Re: know its ipad "Richard Cornford" <Richard@litotes.demon.co.uk> - 2011-07-12 09:04 +0100
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-12 21:19 +1000
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-12 13:09 +0100
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-13 07:35 +1000
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-13 01:00 +0100
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-13 01:14 +0100
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-13 15:57 +1000
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-12 23:29 -0700
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-12 23:31 -0700
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-13 17:25 +1000
Re: know its ipad Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-13 12:53 +0200
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-13 04:20 -0700
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-13 04:34 -0700
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-13 04:58 -0700
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-13 13:50 +0100
Re: know its ipad dhtml <dhtmlkitchen@gmail.com> - 2011-07-13 11:02 -0700
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-13 11:59 -0700
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-13 21:32 +0100
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-13 14:28 -0700
Re: know its ipad 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2011-07-13 23:46 +0100
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-14 10:01 +1000
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-13 16:51 -0700
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-14 02:04 -0700
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-14 15:11 -0700
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-14 21:54 -0700
Re: know its ipad Yoda <jorgechamorro@mac.com> - 2011-07-15 03:14 -0700
Re: know its ipad Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-07-15 13:06 +0100
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-15 08:14 -0700
Re: know its ipad Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-07-15 20:00 +0100
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-15 12:12 -0700
Re: know its ipad Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-07-16 01:14 +0100
Re: know its ipad Jorge <jorge%jorgechamorro.com@gtempaccount.com> - 2011-07-16 08:56 -0700
Re: know its ipad Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-07-16 23:07 +0100
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-17 16:40 -0700
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-18 11:33 +1000
Re: know its ipad RobG <rgqld@iinet.net.au> - 2011-07-17 19:54 -0700
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-18 02:19 -0700
Re: know its ipad Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 21:41 +0200
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-19 07:13 +1000
Re: know its ipad Dr J R Stockton <reply1129@merlyn.demon.co.uk> - 2011-07-19 20:18 +0100
Re: know its ipad Arno Welzel <usenet@arnowelzel.de> - 2011-07-17 10:34 +0200
Re: know its ipad dhtml <dhtmlkitchen@gmail.com> - 2011-07-15 09:56 -0700
Re: know its ipad Arno Welzel <usenet@arnowelzel.de> - 2011-07-13 11:57 +0200
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-13 04:13 -0700
Re: know its ipad Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-13 18:19 +0100
Re: know its ipad "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-07-14 08:12 +0000
Re: know its ipad Richard Cornford <Richard@litotes.demon.co.uk> - 2011-07-13 08:05 -0700
Re: know its ipad Andrew Poulos <ap_prog@hotmail.com> - 2011-07-14 08:34 +1000
Re: know its ipad Elegie <elegie@anonymous.invalid> - 2011-07-12 10:13 +0200
Re: know its ipad Ry Nohryb <jorge@jorgechamorro.com> - 2011-07-12 04:19 -0700
Re: know its ipad Bjoern Hoehrmann <bjoern@hoehrmann.de> - 2011-07-12 13:24 +0200
csiph-web