Solved

Google Maps Click Pin to take you to URL Not Working

Posted on 2014-03-07
3
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 39912182
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
ID: 39912547
Perfect Tom - as always ;-)

Have a good weekend!
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 39912590
Thanks, you too!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

622 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