jquery mobile drag and drop

Excellent sample solutions: jQuery UI Touch Punch is a small hack that enables the use of touch events on sites using the jQuery UI user interface library. Currently, jQuery UI user interface library does not support the use of touch events in their widgets and interactions. This means that the slick UI you designed and … Read more

meteor with mobile front-end UI framework [closed]

Meteoric http://meteoric.github.io/ is a port of ionic, to remove the Angular stuff, and make some UI parts reactive. EDIT: not being updated now that angular is an option to jam into meteor itself. related article: https://medium.com/space-camp/cross-platform-uis-for-mobile-meteor-apps-6f12b583b205 this does seem like a great solution for mobile, but won’t help if you want one UI to be … Read more

Why am I getting “jquery.mobile-1.3.2.min.map file not found” message in Chrome

Probably your Google Chrome DevTools has enabled the option “Enable source maps”. Check your Settings menu, then General and Sources. A source map file it’s a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map … Read more

Centering elements in jQuery Mobile

jQuery Mobile doesn’t seem to have a css class to center elements (I searched through its css). But you can write your own additional css. Try creating your own: .center-button{ margin: 0 auto; } example HTML: <div data-role=”button” class=”center-button”>button text</div> and see what happens. You might need to set text-align to center in the wrapping … Read more

Phonegap Android Back Button – close app with back button on homepage

Update: this has stopped working with a latest Phonegap update (supposedly). Feel free to offer a working solution if you know it. Here’s how I do it: document.addEventListener(“backbutton”, function(e){ if($.mobile.activePage.is(‘#homepage’)){ /* Event preventDefault/stopPropagation not required as adding backbutton listener itself override the default behaviour. Refer below PhoneGap link. */ //e.preventDefault(); navigator.app.exitApp(); } else { navigator.app.backHistory() … Read more