<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/iphone</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 00:01:30 GMT</pubDate>
<item>
<title>(JavaScript) Detect iPhone and iPad - paul0078</title>
<link>http://snipplr.com/view/64575/detect-iphone-and-ipad/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:13:59 GMT</pubDate>
<guid>http://snipplr.com/view/64575/detect-iphone-and-ipad/</guid>
</item>
<item>
<title>(JavaScript) Preventing elastic scrolling on iDevice - timothypwalter</title>
<link>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</link>
<description><![CDATA[ <p>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:</p> ]]></description>
<pubDate>Thu, 02 Feb 2012 22:52:08 GMT</pubDate>
<guid>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Touch and Gesture Events iPhone and Android - thiagotargino</title>
<link>http://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 Sep 2011 23:48:30 GMT</pubDate>
<guid>http://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/</guid>
</item>
<item>
<title>(JavaScript) iPhone Safari Viewport Scaling Bug - ichnoweb</title>
<link>http://snipplr.com/view/58454/iphone-safari-viewport-scaling-bug/</link>
<description><![CDATA[ <p>"Those who create responsive design for iPhone may be aware of the viewport scaling bug in iPhone Safari. The bug occurs when you set the viewport width to device-width and rotate the phone to landscape view."</p> ]]></description>
<pubDate>Mon, 05 Sep 2011 19:03:53 GMT</pubDate>
<guid>http://snipplr.com/view/58454/iphone-safari-viewport-scaling-bug/</guid>
</item>
<item>
<title>(JavaScript) Detecting iPad/iPhone/iPod with javascript - parkarlsson</title>
<link>http://snipplr.com/view/55226/detecting-ipadiphoneipod-with-javascript/</link>
<description><![CDATA[ <p>A tiny snippet on how to easily detect iPad/iPhone/iPod using javascript.</p> ]]></description>
<pubDate>Tue, 14 Jun 2011 18:13:39 GMT</pubDate>
<guid>http://snipplr.com/view/55226/detecting-ipadiphoneipod-with-javascript/</guid>
</item>
<item>
<title>(JavaScript) Hide iPhone address bar on load - tmmyy</title>
<link>http://snipplr.com/view/50698/hide-iphone-address-bar-on-load/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Mar 2011 00:34:14 GMT</pubDate>
<guid>http://snipplr.com/view/50698/hide-iphone-address-bar-on-load/</guid>
</item>
<item>
<title>(JavaScript) Titanium - Get and Display time - shaundunne</title>
<link>http://snipplr.com/view/49741/titanium--get-and-display-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 27 Feb 2011 02:23:12 GMT</pubDate>
<guid>http://snipplr.com/view/49741/titanium--get-and-display-time/</guid>
</item>
<item>
<title>(JavaScript) Detect iPhone/iPad, window resolution and setup CSS classes - HelloKit</title>
<link>http://snipplr.com/view/49210/detect-iphoneipad-window-resolution-and-setup-css-classes/</link>
<description><![CDATA[ <p>Also selects different sized header images for better image quality.</p> ]]></description>
<pubDate>Sat, 19 Feb 2011 03:15:26 GMT</pubDate>
<guid>http://snipplr.com/view/49210/detect-iphoneipad-window-resolution-and-setup-css-classes/</guid>
</item>
<item>
<title>(JavaScript) App.js - rottendevice</title>
<link>http://snipplr.com/view/47120/appjs/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 14 Jan 2011 10:59:47 GMT</pubDate>
<guid>http://snipplr.com/view/47120/appjs/</guid>
</item>
<item>
<title>(JavaScript) [JS][iphone]Check orientation - Mosaic</title>
<link>http://snipplr.com/view/44817/jsiphonecheck-orientation/</link>
<description><![CDATA[ <p>understanding if  the iphone is in landscape or portrait mode</p> ]]></description>
<pubDate>Thu, 25 Nov 2010 01:20:08 GMT</pubDate>
<guid>http://snipplr.com/view/44817/jsiphonecheck-orientation/</guid>
</item>
<item>
<title>(JavaScript) iphone detect - michelfraga</title>
<link>http://snipplr.com/view/32088/iphone-detect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 15 Apr 2010 20:04:29 GMT</pubDate>
<guid>http://snipplr.com/view/32088/iphone-detect/</guid>
</item>
<item>
<title>(JavaScript) iPhone Redirect - luxorweb</title>
<link>http://snipplr.com/view/30095/iphone-redirect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 21 Mar 2010 14:08:03 GMT</pubDate>
<guid>http://snipplr.com/view/30095/iphone-redirect/</guid>
</item>
<item>
<title>(JavaScript) iPhone Detection (Javascript) - browncardigan</title>
<link>http://snipplr.com/view/27961/iphone-detection-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 19:02:30 GMT</pubDate>
<guid>http://snipplr.com/view/27961/iphone-detection-javascript/</guid>
</item>
<item>
<title>(JavaScript) video for iphone - peterbelsky</title>
<link>http://snipplr.com/view/27266/video-for-iphone/</link>
<description><![CDATA[ <p>compress with handbreak, replace div</p> ]]></description>
<pubDate>Thu, 28 Jan 2010 23:10:52 GMT</pubDate>
<guid>http://snipplr.com/view/27266/video-for-iphone/</guid>
</item>
<item>
<title>(JavaScript) Detectar iPhone con Javascript - marcio</title>
<link>http://snipplr.com/view/27046/detectar-iphone-con-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Jan 2010 14:18:18 GMT</pubDate>
<guid>http://snipplr.com/view/27046/detectar-iphone-con-javascript/</guid>
</item>
<item>
<title>(JavaScript) Appcelerator: Simple Zip Code City Finder - chrisaiv</title>
<link>http://snipplr.com/view/23990/appcelerator-simple-zip-code-city-finder/</link>
<description><![CDATA[ <p>Appcelerator Titanium Mobile is a framework + IDE designed to help you build iPhone applications using only HTML and Javascript.  This example shows how to make a simple Ajax request</p> ]]></description>
<pubDate>Tue, 01 Dec 2009 13:51:16 GMT</pubDate>
<guid>http://snipplr.com/view/23990/appcelerator-simple-zip-code-city-finder/</guid>
</item>
<item>
<title>(JavaScript) Client-side mobile device detection - robksawyer</title>
<link>http://snipplr.com/view/17933/clientside-mobile-device-detection/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 05 Aug 2009 20:31:54 GMT</pubDate>
<guid>http://snipplr.com/view/17933/clientside-mobile-device-detection/</guid>
</item>
<item>
<title>(JavaScript) How To Connect To A SOCKS Proxy From An Unjailbroken iPhone/iPod Touch - shaunchapman</title>
<link>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</link>
<description><![CDATA[ <p>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 ;)</p> ]]></description>
<pubDate>Wed, 01 Jul 2009 13:51:50 GMT</pubDate>
<guid>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</guid>
</item>
<item>
<title>(JavaScript) iPhone/iPod Touch detection - Nanobyte</title>
<link>http://snipplr.com/view/15401/iphoneipod-touch-detection/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 May 2009 15:58:48 GMT</pubDate>
<guid>http://snipplr.com/view/15401/iphoneipod-touch-detection/</guid>
</item>
<item>
<title>(JavaScript) detecting iPhone with javascript - marcio</title>
<link>http://snipplr.com/view/14786/detecting-iphone-with-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 May 2009 20:43:06 GMT</pubDate>
<guid>http://snipplr.com/view/14786/detecting-iphone-with-javascript/</guid>
</item>
</channel>
</rss>