• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

Google Maps Click Pin to take you to URL Not Working

Hello,

I have a page with a map - looks great, but the URL set for the pins doesn't seem to work - it takes you back to the homepage instead of to the region page - help please!

This is the page which will show you the behavior:

http://www.villasdirect.com/top-destinations.asp

Thank you!
0
Nico2011
Asked:
Nico2011
  • 2
1 Solution
 
Tom BeckCommented:
XML is case sensitive. You have this line:
var url = $(markers[i]).attr("url");

Open in new window

But your XML has this: URL="http://...

So do this for the javascript:
var url = $(markers[i]).attr("URL");

Open in new window

0
 
Nico2011Author Commented:
Perfect Tom - as always ;-)

Have a good weekend!
0
 
Tom BeckCommented:
Thanks, you too!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now