Finally got it.
No need to use JavaScript at all. Just a <meta> tag in the html.

The reason why my meta tag was not being considered, it's because I
was using semicolons (and no spaces) to separate the params in the
content attribute (as you would do for the css "style" attribute). I
found out the correct way to separate params in the meta content
attribute is by using simple colons:

<meta name="viewport" content="width=320, initial-scale=1.0" />

this was NOT working:
<meta name="viewport" content="width=320;initial-scale=1.0;" />


On May 14, 10:47 am, Zeno <[email protected]> wrote:
> I'm not able to get window.resizeTo to work on MobileSafari: it simply
> doesn't have any effect, although it seems to be 
> supported:http://stevestreza.com/text/179/some-iphone-safari-properties/
>
> When reloading a page, MobileSafari remembers (and reapplies) the
> level of zoom the page had before the reload.
> I'm desperately looking for a way to reset to the original "zoom"
> level programmatically (with JavaScript), and I can't think of any
> other ways to achieve this other than with window.resizeTo (because
> window.innerWidth seems to be readonly)
>
> Any ideas?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to