Disable Buttons in jQuery Mobile

UPDATE: Since this question still gets a lot of hits I’m also adding the current jQM Docs on how to disable the button: http://jquerymobile.com/demos/1.2.0/docs/buttons/buttons-methods.html Updated Examples: enable enable a disabled form button $(‘[type=”submit”]’).button(‘enable’); disable disable a form button $(‘[type=”submit”]’).button(‘disable’); refresh update the form button If you manipulate a form button via JavaScript, you must call … Read more

Using pre-compiled templates with Handlebars.js (jQuery Mobile environment)

So after much trial and error (which is the best way to learn it) here’s the way that works for me. First- externalize all your templates, say you have a template inside script tags like <script id=”tmpl_ownevents” type=”text/templates”> {{#unless event}} <div class=”notfoundevents”><p>No events for you</p></div> {{/unless}} </script> Create a new file called events.tmpl and copy/paste … Read more

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.

jQuery Mobile: Stick footer to bottom of page

You can add this in your css file: [data-role=page]{height: 100% !important; position:relative !important;} [data-role=footer]{bottom:0; position:absolute !important; top: auto !important; width:100%;} So the page data-role now have 100% height, and footer is in absolute position. Also Yappo have wrote an excellent plugin that you can find here: jQuery Mobile in a iScroll plugin http://yappo.github.com/projects/jquery.mobile.iscroll/livedemo.html hope you … Read more

jQuery Mobile: Markup Enhancement of dynamically added content

Intro: There are several ways of enhancing dynamically created content markup. It is just not enough to dynamically add new content to jQuery Mobile page, new content must be enhanced with classic jQuery Mobile styling. Because this is rather processing heavy task there need to be some priorities, if possible jQuery Mobile needs to do … Read more

Difference between jQuery and jQuery Mobile?

jQuery is purely designed to simplify and standardise scripting across browsers. It focuses on the low-level stuff: creating elements, manipulating the DOM, managing attributes, performing HTTP requests, etc. jQueryUI is a set of user interface components & features built on top of jQuery (i.e. it needs jQuery to work): buttons, dialog boxes, sliders, tabs, more … Read more

Eliminate 300ms delay on click events in mobile Safari

Now some mobile browsers eliminate 300 ms click delay if you set the viewport. You don’t need to use workarounds anymore. <meta name=”viewport” content=”width=device-width, user-scalable=no”> This is currently supported Chrome for Android, Firefox for Android and Safari for iOS However on iOS Safari, double-tap is a scroll gesture on unzoomable pages. For that reason they … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)