SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 179 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

The basic syntax is:
1-507.555-5555
When a user clicks the link, the phone does not automatically dial. Instead, iPhone displays a
confirmation box (see Figure 7-6 ) that allows the user to click Call or Cancel.
Figure 7-5: Adding the Contact header
Chapter 7: Integrating with iPhone Services
160
Telephone links can go beyond ordinary numbers. iPhone provides partial support for the RFC 2086
protocol ( www.ietf.org/rfc/rfc2806.txt ), which enables you to develop some sophisticated
telephone-based URLs. For example, the following link calls the U.S. Postal Service, pauses for
2 seconds, and then presses 2 to get a Spanish version:
USPS (Espanol)
Note that p creates a 1-second pause, so pp will cause a 2-second pause before continuing. Mobile Safari
will also automatically create telephone links for you in your pages. Any number that takes the form of
a phone is displayed as a link. Therefore, if you ever have a situation in which you do not want to link a
telephone number (or a number that could be interpreted as a phone number), then add the
format-detection meta tag (for iPhone 1.1.1 and above) to the document head:
Figure 7-6: User needs to confirm a telephone link
before a call is initiated.


Pages:
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191