Sencha Touch or jQuery Mobile? [closed]

Sencha Touch is an application framework (you create your interface programmatically through Javascript) while jQuery Mobile is more of a mobile enhancement library (you write regular HTML for your content, then add jQuery mobile for transitions/animations). jQuery Mobile has an easier learning curve, but Sencha Touch can better simulate “native” apps.

How can I request an increase to the HTML5 localstorage size on iPad, like the FT web app does?

I happen to know something about this 😉 There’s no API for requesting an increase in storage size for an existing database. There is one way to force an increase: write data to the database in such a size that an increase is required, prompting the user. However, this would be slow and there’s no … Read more

Which Devices Support Javascript Geolocation via navigator.geolocation?

As of today, the W3C Geolocation API (widely associated with, though not technically part of, HTML 5) is support in the following major desktop browsers: Firefox (since 3.5) Safari (since 5.0) Google Chrome (version depends on OS) Opera (since 10.60) Internet Explorer (since IE 9) There are at least two mobile browsers that implement the … Read more

iOS Safari – How to disable overscroll but allow scrollable divs to scroll normally?

This solves the issue when you scroll past the beginning or end of the div var selScrollable=”.scrollable”; // Uses document because document will be topmost level in bubbling $(document).on(‘touchmove’,function(e){ e.preventDefault(); }); // Uses body because jQuery on events are called off of the element they are // added to, so bubbling would not work if … Read more

Mobile website “WhatsApp” button to send message to a specific number

Format to send a WhatsApp message to a specific number (updated Nov 2018) <a href=”https://wa.me/whatsappphonenumber/?text=urlencodedtext”></a> where whatsappphonenumber is a full phone number in international format urlencodedtext is the URL-encoded pre-filled message. Example: Create a link with a pre-filled message that will automatically appear in the text field of a chat, to be sent to a … Read more

Strange behavior of select/dropdown’s onchange() JS event when using ‘Next’ on Mobile Safari Dropdown list item select box

I had the same problem on my site. I was able to fix it by manually polling the selectedIndex property on the select control. That way it fires as soon as you “check” the item in the list. Here’s a jQuery plugin I wrote to do this: $.fn.quickChange = function(handler) { return this.each(function() { var … Read more

Blocking device rotation on mobile web pages

New API’s are developing (and are currently available)! screen.orientation.lock(); // webkit only and screen.lockOrientation(“orientation”); Where “orientation” can be any of the following: portrait-primary – It represents the orientation of the screen when it is in its primary portrait mode. A screen is considered in its primary portrait mode if the device is held in its … Read more