Solved

Google Maps Click Pin to take you to URL Not Working

Posted on 2014-03-07
3
260 Views
Last Modified: 2014-03-07
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
Comment
Question by:Nico2011
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:Nico2011
Comment Utility
Perfect Tom - as always ;-)

Have a good weekend!
0
 
LVL 38

Expert Comment

by:Tom Beck
Comment Utility
Thanks, you too!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now