Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8120
| Date | 2011-11-08 14:22 +1100 |
|---|---|
| From | Andrew Poulos <ap_prog@hotmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: ontouchstart and iOS |
| References | <o72dnaRTpINmCSXTnZ2dnUVZ_hKdnZ2d@westnet.com.au> |
| Message-ID | <6cOdnTb2ZYwMPSXTnZ2dnUVZ_o2dnZ2d@westnet.com.au> (permalink) |
On 8/11/2011 1:33 PM, Andrew Poulos wrote: > I've set this handler > > window.ontouchstart = myFunc; > > and it triggers on iOS 5 devices but seems to be ignored on iOS 4 > devices. I don't get any errors it just seems to be ignored. Attaching > ontouchstart to BODY gets ignored by both iOS 4 and 5. > > Is there a reliable way to get iOS to recognise ontouchstart anywhere on > the page? I'm now testing document.ontouchstart = myFunc; and document.documentElement.ontouchstart = myFunc; and both seem to work. Alas I don't understand why 'window' partly works, 'body' fails, and 'document' works. Andrew Poulos
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ontouchstart and iOS Andrew Poulos <ap_prog@hotmail.com> - 2011-11-08 13:33 +1100
Re: ontouchstart and iOS Andrew Poulos <ap_prog@hotmail.com> - 2011-11-08 14:22 +1100
Re: ontouchstart and iOS David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 03:26 -0800
Re: ontouchstart and iOS David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 03:13 -0800
csiph-web