Powered By:
Android Advice
 

Mobile Websites

How to Show a jQuery Mobile Dialog

Posted by on August 28, 2012 at 12:28 am

To show a dialog in jQuery Mobile you declare a special link, that when clicked, shows the dialog. To show a dialog programatically, without showing the link, you simply hide the link and manually fire the click event on the link, which effectively shows the dialog. <a id=”DialogLink” href=”#MyDialog” data-rel=”dialog” style=”display:none;”></a> <!– we hide the [...]

How to Disable a Button in jQuery Mobile

Posted by on August 25, 2012 at 7:25 pm

JQ Mobile Form Buttons To disable a jQuery Mobile form button is straight forward and built into the framework. A form button is declared like so: <button data-icon=”refresh” data-theme=”a”>Press This</button> And, disabled/enabled like so: $(‘button’).button(‘disable’); $(‘button’).button(‘enable’); JQ Mobile Link Buttons A link button on the other hand is not as straight forward to disable as [...]

Scalable Images For Mobile Web Apps Using SVGs

Posted by on November 19, 2011 at 10:09 pm
Inkscape Document Properties

Creating icons/images for mobile web applications can be a pain, trying to cater for all different screen sizes and densities/dpis. If your image is too small for the device and up-scaled it will look pixilated or blurred and if it is too large for the device and down-scaled it can result in loss of detail [...]