Albert, iUI disables the normal link behavior in its iui.js file. That's why it is not working. I added my own extension onto iUI called cUI (to emulate iPhone Contacts functionality) that allows you to do telephone links, email links, and Google Maps links. You can download it at iphog.blogspot.com.
- Rich On Jul 23, 2:18 pm, Albert <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone tell me why theGoogleMapsand "tel" links do not seem to > work in iUI? > > For example, suppose I have a web form page that looks like > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Test Search</title> > <meta name="viewport" content="width=320; initial-scale=1.0; maximum- > scale=1.0; user-scalable=0;"/> > <style type="text/css" media="screen">@import "iui.css";</style> > <script type="application/x-javascript" src="iui.js"></script> > </head> > > <body> > <div class="toolbar"> > <h1 id="pageTitle"></h1> > <a id="backButton" class="button" href="#"></a> > </div> > > <form title="Search" id="searchform" class="panel" > name="searchform" action="results.html" method="POST" selected="true"> > <h2>Search for Customers</h2> > <fieldset> > <div class="row"> > <label></label> > <input type="text" name="SearchString" value=""/> > </div> > </fieldset> > <a href="#" id="submitBtnA" class="whiteButton" > type="submit">Search</a> > > </form> > > </body> > </html> > > And "results.html" looks like > > <ul> > <li><a href="#ref0">Acme Printing</a></li> > <li><a href="#ref1">Green Pastures Landscapes</a></li> > </ul> > > <ul id="ref0"> > <li><a href="http://maps.google.com/maps?q=Denver,+CO">Denver, CO</a></ > li> > <li><a href="tel:1-303-555-5555">1-303-555-5555</a></li> > </ul> > > <ul id="ref1"> > <li><a href="http://maps.google.com/maps?q=Chicago,+IL">Chicago, IL</ > a></li> > <li><a href="tel:1-312-555-5555">1-312-555-5555</a></li> > </ul> > > Then when I load the web form and enter an (arbitrary) search string, > the results page is shown; when I click on either of the two entries > (Acme Printing or Green Pastures), the cites and phone numbers are > shown as expected. All of this uses the expected slide navigation. > But clicking on either themapsor the tel links does not work--Safari > just spins forever. GoogleMapsnever comes up, or the phone never > offers to call the phone number. > > If I load "results.html" directly, then the links DO work. > > Am I doing something wrong, or is iUI broken in this respect? > > Thanks, > > --Albert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
