....+ '<br/>' +email + '<br/>' +....
to
....+ '<br/><a href="mailto:' +email + '">' +email + '</a><br/>' +....

Similar if website is a url

...+ '<br/>' + website;
to
...+ '<br/><a href="' + website+'">' + website+'</a>';

Will need that website is a fully formed link. Could perhaps do

if (website.indexOf("http://";) == -1)
   website = "http://"+website;



On 24 November 2010 15:10, Richy Thomas <[email protected]> wrote:
> http://www.theskinpharmacy.co.uk/patient_information_find_a_dermatologist.php
>
> Please see above my map. If you type in CF14 into the postcode field
> you will be displayed with two locations. Click on the one that says
> RT-Media and the pop up window will show a list of information which
> is great. But what I want to do is have the E-Mail address as a click-
> able link - the same with the website, and if possible I would prefer
> the phone number to appear like a phone number that is also click-able
> through the likes of an iphone.
>
> I have tried many different standard HTML methods on doing this but
> either get syntax errors or my map fails to load.
>
> I have a mySQL database setup with the fields telephone, email,
> website
>
> Do I need to set these to a certain field type?
>
> is it this part I need to edit?
>
>   function createMarker(point, name, address, telephone, email,
> website) {
>      var marker = new GMarker(point);
>      var html = '<b>' + name + '</b> <br/>' + address + '<br/>' +
> telephone + '<br/>' +email + '<br/>' + website;
>      GEvent.addListener(marker, 'click', function() {
>        marker.openInfoWindowHtml(html);
>      });
>      return marker;
>
> or isit this part i need to edit?
>
>  var telephone = markers[i].getAttribute('telephone');
>                 var email = markers[i].getAttribute('email');
>                 var website = markers[i].getAttribute('website');
>
> maybe it's this part:
>
> $newnode->setAttribute("telephone", $row['telephone']);
>  $newnode->setAttribute("email", $row['email']);
>  $newnode->setAttribute("website", $row['website']);
>
> Either way I'm confused and would really appreciate some help.
>
> Richy
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API V2" 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/google-maps-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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/google-maps-api?hl=en.

Reply via email to