Benches iPhone

8

Tooltips in iPhone's Mobile Safari?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

It says here that "Similar to hover styles, tooltips are not displayed unless the user touches and holds a clickable element with a tooltip.", but when holding down on an image, it instead shows a menu with the option to save the image.

http://developer.apple.com/safari/library/documentation/AppleApplications/Refere nce/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarion iPhone.html#//apple_ref/doc/uid/TP40006482-SW21

Is there still a way to see tooltips, or is this outdated?

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    g-pod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    It's not working for me. Tapping once on an image with alt and/or title text doesn't seem to do anything.

    As a prominent example, if visiting xkcd.com:

    <img src="http://imgs.xkcd.com/comics/science_montage.png" title="The rat's perturbed; it must sense nanobots! Code grey! We have a Helvetica scenario!" alt="Science Montage" />

    Neither of the text for those attributes appear.

    Likewise, title attribute for something like <a href="something.html" title="This text">Else</a> doesn't show up either.

  2. 0

    neuroanatomist

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    g-pod wrote:

    I was curious about how to access the title attribute text for any element on the iPhone

    So, now you know the answer - the iPhone cannot, at least with Mobile Safari. Not sure about 3rd party browsers, though.

  3. 0

    neuroanatomist

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Back to web design school for you... 😉

    The 'prominent examples' you list below are HTML attribute (title or alt) tags, which many browsers, but NOT the iPhone's Mobile Safari, render as tooltips. Tooltips which are implemented via javascript
    are accessible on the iPhone via a tap.

    http://javascript.about.com/library/bltip1.htm

    Also, see
    this related page in the iPhone developer documentation (linked to from the page you posted above).

  4. 0

    g-pod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I just meant, as a user, is there a way to display tooltips? I thought the answer was no, but there's documentation suggesting otherwise (and it appears to be incorrect). I'm wondering if anyone can confirm.

  5. 0

    neuroanatomist

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes, you can view tooltips in the iPhone Safari browser. Do not tap-and-hold, just tap. For clickable text with tooltips, tap-and-hold brings up a JavaScript Open/Cancel dialog, tapping open displays the tooltip. For a clickable image with a tooltip, tap-and-hold does bring up the Save Image dialog (and you cannot access the tooltip). But in both cases, a simple, single tap brings up the tooltip.

    Try the many examples on this page:
    http://www.walterzorn.com/tooltip/tooltip_e.htm.

  6. 0

    g-pod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Well, I meant tooltips in the informal sense, knowing that it's up to the browser how to handle alt and title attributes, such as the days when Netscape/Mozilla/Firebird/Firefox made the distinction between treating title as a tooltip, and alt as not (unlike IE).

    I don't really consider JS-powered tooltips true tooltips, nor CSS-powered tooltips either. I was curious about how to access the title attribute text for any element on the iPhone, given that Mobile Safari doesn't seem to provide even an alternative to the defacto tooltip seen on desktop browsers.

  7. 0

    Allan Sampson

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Assuming your are a registered developer, you should post this in Apple's developer discussions area for the iPhone.

  8. 0

    g-pod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    😟 Oh well, thanks though!