The dropdowns are working fine. I haven t written those codes since i
am new to programming. Got those codes for the dropdown alone from
another site.These dropdowns are using jquery. when the first dropdown
gets changed , It populates the correspoding options for the second
dropdown. And only when the second dropdown gets changed it reads the
readMap function using onchange event handler for the corresponding
option in the drop box.i am very sure that there is no problem with
that part.But couldn t find why the link to any local file cannot be
created.

On Jul 3, 9:52 pm, "Pil (Trustworthy from Experience)"
<wolf...@gmail.com> wrote:
> 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 yourfilemap.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.xmlhttp://www.erodemappy.com/dreamweaver/map11FD.xmlhttp://www.erodemappy.com/dreamweaver/map11SG.xmlhttp://www.erodemappy.com/dreamweaver/map11ET.xmlhttp://www.erodemappy.com/dreamweaver/map11AN.xmlhttp://www.erodemappy.com/dreamweaver/map11EL.xmlhttp://www.erodemappy.com/dreamweaver/map11PS.xmlhttp://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 <ila...@gmail.com> wrote:
>
> > Hi,  My issue is i couldntlinkalocalfile(fileis 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
> >linkthe second infowindow to alocalfile( page.html ) but in vain.
> > I believe there is hierarchy problem in linking thefilefrom thexml
> >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
> > tolink)
> >        contains two folders dreamweaver and js
> > 1.1.Inside Dreamweaver folder:
> >          Contains thexmlfiles
> > 1.2 Inside js folder:
> >           Contains the map.jsfile
>
> > In the homepage.html i have included the map.jsfile(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.jsfilei have called thexmlfile (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 thexmlfile(map11a.xml) to page.html code :
>
> > <marker lat="43.65654" lng="-79.90138"
> >    html='Some stuff to display in the&lt;br&gt;First Info Window
> > &lt;br&gt;With a &lt;a href="page.html"&gt;Link&lt;/a&gt; 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 Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to