Hi, My issue is i couldnt link a local file(file is present in the
same folder as my homepage) from info window.Pls find the list of
markers and the info window in www.erodemappy.com . I have tried to
link the second infowindow to a local file ( page.html ) but in vain.
I believe there is hierarchy problem in linking the file from the xml
file . Pls do guide me if i am wrong.
Let me be elaborate about the folder structure of the files i used.
1.Folder A:
Contains the homepage.html and page.html(the page i am trying
to link)
contains two folders dreamweaver and js
1.1.Inside Dreamweaver folder:
Contains the xml files
1.2 Inside js folder:
Contains the map.js file
In the homepage.html i have included the map.js file(js/map.js) which
contains the code to display the google map and its markers .Pls find
the code below.
<!-- Map JS -->
<script type="text/javascript" src="js/map.js"></script>
And from map.js file i have called the xml file (Dreamweaver/
map11a.xml) which contains the list of markers to display in the
sidebar.Pls find the code below.
function readMap(url) {
var url="dreamweaver/map11"+url+".xml";
var request = GXmlHttp.create();
request.open("GET", url, true);
The code linking the xml file(map11a.xml) to page.html code :
<marker lat="43.65654" lng="-79.90138"
html='Some stuff to display in the<br>First Info Window
<br>With a <a href="page.html"> Link </a> to my home
page'
label="Marker One"
/>
Pls let me know if my question is confusing. Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---