Snipplrhttp://snipplr.com/language/javascript/tags/touch
Recent snippets posted on Snipplr.comen-usWed, 04 Mar 2015 07:39:37 GMT(JavaScript) Preventing elastic scrolling on iDevice - timothypwalterhttp://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/
If you a flick a web app past the bottom or top of the page, the page itself gets elastically tugged away from the URL bar or the button bar (or the bottom/top of the screen if it's in full-screen mode).
This behavior is another giveaway that your app isn't native, and it's rarely the behavior you want in a native app.
To stop this behavior, capture touchmove events on the document in JavaScript and cancel them. You can do this by adding a handler to the body tag, and invoking the preventDefault method on the event object: ]]>Thu, 02 Feb 2012 22:52:08 GMThttp://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/(JavaScript) JavaScript Touch and Gesture Events iPhone and Android - thiagotarginohttp://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/
]]>Tue, 20 Sep 2011 23:48:30 GMThttp://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/(JavaScript) isTouchDevice() - jpdevrieshttp://snipplr.com/view/38259/istouchdevice/
Google Chrome 5.0.375.125 on Mac OS X 10.6 presents itself returns true for this function, even though its not really a touch device? ]]>Tue, 03 Aug 2010 10:21:10 GMThttp://snipplr.com/view/38259/istouchdevice/(JavaScript) How To Connect To A SOCKS Proxy From An Unjailbroken iPhone/iPod Touch - shaunchapmanhttp://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/
Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/iPod Touch. This is actually pretty easy to accomplish.
First, you need to make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it. To do this, you simply need to add `-g` to your existing SSH command (something like `ssh -N -g -D 1080 user@domain.com`).
Most people think you can't connect to a SOCKS proxy from an iPhone/iPod Touch without jailbreaking it but the truth is you can. You simply have to create a Proxy Auto-Config (PAC) file, insert the function below in it (replace the *x*'s with your IP and the *y*'s with the port you used after the `-D` in your SSH command), and save it to a web accessible place with a *.pac* extension. If you're reading this chances are you know how to serve a file over HTTP on your work LAN, so I won't delve into that.
Finally, on your iPhone/iPod Touch, go to *Settings > Wifi* and click the blue arrow to the right of your work network, scroll to the bottom, click *Auto* and type in the address to your PAC file (*e.g. http://192.168.xx.xx/mysupersecretproxy.pac*).
Congrats! Now you can surf the web securely from your iPhone/iPod touch ;) ]]>Wed, 01 Jul 2009 13:51:50 GMThttp://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/(JavaScript) iPhone/iPod Touch detection - Nanobytehttp://snipplr.com/view/15401/iphoneipod-touch-detection/
]]>Fri, 29 May 2009 15:58:48 GMThttp://snipplr.com/view/15401/iphoneipod-touch-detection/