This event handler is in the wrong place onChange="JavaScript: readMap(this.options [this.selectedIndex].value);"
It should be inside the select element <select id="state" name="state" onchange="readMap(...)"> (Please don't use: onChange, use: onchange instead when using a srict doctype). this.options[this.selectedIndex].value refers to the values of your options list. These values are: ALL FD SG ET AN BL PS SS In your file map.js there is this line where you try to put together the values of the above mentioned values to achieve your files in the directory dreamweaver: var url="dreamweaver/map11"+url+".xml"; This would mean that the following files exist and you are able to call them with the following links. Try it yourself to see that they don't exist: http://www.erodemappy.com/dreamweaver/map11ALL.xml http://www.erodemappy.com/dreamweaver/map11FD.xml http://www.erodemappy.com/dreamweaver/map11SG.xml http://www.erodemappy.com/dreamweaver/map11ET.xml http://www.erodemappy.com/dreamweaver/map11AN.xml http://www.erodemappy.com/dreamweaver/map11EL.xml http://www.erodemappy.com/dreamweaver/map11PS.xml http://www.erodemappy.com/dreamweaver/map11SS.xml Could be that there are more inconsistencies in your script. I didn't look at all the code. On Jul 3, 5:02 pm, m3 <[email protected]> wrote: > 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 inwww.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 -~----------~----~----~----~------~----~------~--~---
