On 25/04/2010, at 11:16 AM, Paul Hoadley wrote:

> Has anyone used, or can anyone suggest, an easy work-around here?  My 
> application makes quite some use of WOHyperlinks.  While a complete re-design 
> of the iPhone-specific UI is probably the Right Thing, I would be happy in 
> the first instance with a hack, no matter how egregious.

Found a hack:

var a = document.getElementsByTagName("a");
for (var i=0; i < a.length; i++) {
  a[i].onclick=function() {
    window.location=this.getAttribute("href");
    return false;
  }
}

Running this after document load patches all the standard hyperlinks on the 
page to fool the iPhone into staying in "full screen mode".


-- 
Paul.

http://logicsquad.net/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to