Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Google Maps Click Pin to take you to URL Not Working

Posted on 2014-03-07
3
Medium Priority
?
270 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

963 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