How to change page in jQuery mobile (1.4 beta)?

As of jQuery Mobile 1.4, $.mobile.changePage() is deprecated and replaced with: $(“:mobile-pagecontainer”).pagecontainer(“change”, “target”, { options }); Shortened… $.mobile.pageContainer.pagecontainer(“change”, “target”, { options }); Even shorter…(1) $(“body”).pagecontainer(“change”, “target”, { options }); Note: target is #page_id or URL. Demo (1) <body> is pageContainer by default, unless $.mobile.pageContainer is modified on mobileinit.

set content height 100% jquery mobile

Update I have added a Pure CSS Solution below. I have noticed that .ui-content div doesn’t fill the empty space 100%, it is still missing 2px. Those comes from fixed toolbars header and footer, as they have margin-top: -1px and margin-bottom: -1px respectively. (fiddle) It wasn’t obvious before as both page div and footer have … Read more

Injected li items are not formatted with CSS style [closed]

Dynamically added listview elements must have its markup enhanced with this function: $(‘#listviewID’).listview(‘refresh’); Working example: http://jsfiddle.net/Gajotres/LrAyE/ In case you receive this error: cannot call methods on listview prior to initialization Then restyle your listview with this: $(‘#listviewID’).listview().listview(‘refresh’); First listview function will initialize listview and second one will restyle it. But do this ONLY if error … Read more