Re: iPhone web applications and hyperlinks
Re: iPhone web applications and hyperlinks
- Subject: Re: iPhone web applications and hyperlinks
- From: Paul Hoadley <email@hidden>
- Date: Sun, 25 Apr 2010 12:05:55 +0930
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]. style="color: #910091">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".
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden