On 17/06/2009, at 18:23, Sean Gilligan wrote:
> Ross Butler wrote:
>> Thanks G but it doesnt seem to work,
>>
>> Can anyone else help me out please?
>
> I don't think it is possible to force a WebApp to run in either
> portrait
> or landscape mode.
>
> The only way I know of to force an HTML page into portrait or
> landscape
> mode is to create a hybrid app using UIWebView and the Cocoa Touch
> APIs.
I've tried to "preventDefault" with this:
window.onorientationchange= function (e) {
document.body.appendChild(document.createElement('span')).innerHTML=
"+ ";
e.stopPropagation();
e.preventDefault();
return false;
};
but no luck... :-(
--
Jorge.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---