• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone web applications and hyperlinks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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".


-- 
Paul.

http://logicsquad.net/


 _______________________________________________
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

References: 
 >iPhone web applications and hyperlinks (From: Paul Hoadley <email@hidden>)

  • Prev by Date: iPhone web applications and hyperlinks
  • Next by Date: Re: iPhone web applications and hyperlinks
  • Previous by thread: iPhone web applications and hyperlinks
  • Next by thread: Re: iPhone web applications and hyperlinks
  • Index(es):
    • Date
    • Thread