Yes, the Google Maps links are supposed to invoke the iPhone
Google Maps app instead of just go to the website.

I tried these links in a non-iUI AJAX page I created before trying
iUI, and they worked fine.  In other words, when you change or
add to a page's DOM by putting in such a hyperlink, clicking
on the link invokes the iPhone's Google Maps application, and
clicking on a "tel:" link pops up the phone call dialog.  I'm sure
many folks have already tested and seen this in their own apps.

However, when you do the same thing with iUI (which does its
own AJAX--e.g., adding "results.html" in my example below),
clicking on these links causes Safari to spin forever.

It would be great to find out why and to resolve this issue.
At the moment, I have not found a workaround.

Thanks,

--Albert


On Jul 23, 11:38 am, "Mitchell Waite" <[EMAIL PROTECTED]> wrote:
> I was under the impression that Google maps is using a special version of
> the browser, not safari.
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
>
> On Behalf Of Albert
> Sent: Monday, July 23, 2007 11:19 AM
> To: iPhoneWebDev
> Subject: iUI and Google Maps, Telephone links
>
> Hi,
>
> Can someone tell me why the Google Maps and "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 the maps or the tel links does not work--Safari
> just spins forever.  Google Maps never 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to