How can I allow users to zoom pages?
I would like mobile users to be able to zoom certain pages, or all pages. For example, say I have a page that shows a very large image and I want the user to be able to zoom in to see the details.
I tried the following and it did not work in preview mode using my Android browser:
precode
$(document).bind('pageinit', function(){
$.mobile.metaViewportContent = 'width=device-width';
});
/code/pre
Oddly, on certain pages (such as the image page I mentioned, which only contains an image and nothing else) if I refreshed the page it would start working.
I am using the "Render all pages in one HTML file (jQuery Mobile multi-page template)" option so my app preview switches quickly from page to page, so I would think that if I modified that value once, it would allow zooming in every page.
Any tips? Maybe there is a better way to allow zooming.