0

I'm trying to develop a web-based app for the iPhone here. Everything works perfectly (tested in browser) however, when I take this:

function goToLocation() {
    latitude = document.getElementById("<%=txtLatitude.ClientID%>").innerHTML;
    longitude = document.getElementById("<%=txtLongitude.ClientID%>").innerHTML;
    window.parent.location = 'http://maps.google.com/maps?q='latitude + ',' +
    longitude + '&z=14';
}

mixed with my aspx:

    <tr><td>Latitude: </td>
        <td><asp:Label ID="txtLatitude" runat="server"></asp:Label></td>
    </tr>
    <tr><td>Longitude: </td>
        <td><asp:Label ID="txtLongitude" runat="server"></asp:Label></td>
    </tr>

I get:

http://maps.google.com/maps?q=<a href="tel:11.111">11.111</a>,<a href="tel:22.222">22.222</a>

where 11.111 is my latitude, and 22.222 is my longitude.

When I use my computer browser, it shows up as it should, as http://maps.google.com/maps?q=11.111,22.222

So, i suppose my question is: is there any way to tell the iphone not to prepend "tel:" or, I guess I can work around this by telling javascript to start at a number (something i can look up myself). but at the same time, i do not like having the latitude and longitude as links in my phone.

Thanks!

Ankit Ahuja
  • 73
  • 2
  • 14
  • See: http://stackoverflow.com/questions/226131/how-to-disable-phone-number-linking-in-mobile-safari – picciano Aug 11 '11 at 21:32
  • Trust me. [http://jquery.com/](http://jquery.com/) You can name your future son after me later :) – martin Aug 17 '11 at 06:31

0 Answers0