Hi and Thanks all, Skip,
I did exactly what you told, but when I click back button and stop zoom (that is make user-scalable=0 again) my application remains zoomed (blown up). any suggestions. Regards, Taufiq On May 14, 3:07 am, skip <[email protected]> wrote: > We do this all the time and have no problem. There are a few steps. > > 1. First use a slightly different meta tag to start with -- > > <meta name="viewport" content="width=devicewidth; initial-scale=1.0; > maximum-scale=10.0; minimum-scale=1.0; user-scalable=0;"/> > > 2. Here is our script for "turning on zooming" > > <script type=application/javascript> // set viewport to "zoomable" > > var mets=document.getElementsByTagName("meta"); > for (j=0;j<mets.length;j++) > if (mets[j].name == 'viewport') > break; > > if (mets[j]) > mets[j].content = mets[j].content.replace('user- > scalable=0','user-scalable=1'); > </script> > > 3. In order for any javascript at all to work inside an Ajax loaded > page such as iui uses you need to follow previous threads on this > topic such as: > > http://groups.google.com/group/iphonewebdev/browse_thread/thread/f4ca... > > (There is a lot of discussion about javascript execution inside iui). > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
