Solved

Google Maps Click Pin to take you to URL Not Working

Posted on 2014-03-07
3
265 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mobile apps - web/native or hybrid? 1 64
Link not working 6 41
How do I show a login page over the login page? 5 38
Building JSON/JQuery Results Display 11 21
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

740 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