PDA

View Full Version : Using hyphen - iPhone OS thinks it's a phone number...




bitfactory
Apr 3, 2009, 01:04 PM
Hi Folks,

I'm build an iPhone web app, and I discovered that when I display some data with a hyphen - it displays it as a link - the phone thinks it's a telephone number.

Here's what's being displayed:
<span>72-04756</span>

It creates a break before and after this number, and turns it into a link.

Any ideas how to display this number without the phone thinking it's a phone number? I thought the only time the phone would trigger a phone number with with a <a href="tel:555-555-5555"> link.

???



bitfactory
Apr 3, 2009, 01:06 PM
NM, I found it:

<meta name = "format-detection" content = "telephone=no">

Thanks - Art

macfanboy
Apr 3, 2009, 08:11 PM
i don't think the hyphen was the problem --- i would think the fact that it's a 7-digit number would confuse it

just my thoughts