ok so i defined it the way the others are done and im still getting an
undefined error in the same area...
var xmlcellicontype = xmlrow.getElementsByTagName("icontype")[0];
var celltexticontype = xmlcellicontype.firstChild.data;ie says icontype is undefined.... I updated the code at http://www.mototips.com/sample/sample.html On Jun 11, 12:09 am, "[email protected]" <[email protected]> wrote: > On Jun 11, 12:07 am, mototips <[email protected]> wrote: > > > Yes larry what i want it to do is read that value in my xml file and > > from there it will display the icon... That way in the future i can > > have different icon types and keep everything in the same xml file. > > Why does it not understand what im trying to make it do right now? > > Did you see my earlier post: > ================================================ > IE6 reports: > Line:72 > Error: 'markers' is undefined > > The only mention I see of markers on your page is on line 73 (IE has > trouble counting lines): > > var icontype = parseInt(markers[i].getAttribute("icontype")); > > I suspect you want that to reference the array of xml elements > "xmlrow" like all the other lines do. > ================================================ > > -- Larry > > > > > > > On Jun 11, 12:00 am, "[email protected]" <[email protected]> > > wrote: > > > > On Jun 10, 11:58 pm, mototips <[email protected]> wrote: > > > > > Now I am just very confused... My new updated code is still not > > > > working but i am so lost at this point i really dont know what to > > > > say... > > > > A good start would be to stop posting huge code dumps, the link to the > > > page that exhibits the problem is much better. > > > > -- Larry > > > > > You can view that there is no marker > > > > shownhttp://www.mototips.com/sample/sample.htmlhttp://www.mototips.com/sam...<< > > > > shows a marker just not the custom > > > > one... But the sample.html code has come much further then this > > > > orginal.... > > > > > I need this explained to me like i am a newbie. > > > > Thank you every one for your help so far and your help in the future. > > > > Look forward to hearing from you all :) > > > > > On Jun 10, 11:42 pm, Mike Williams <[email protected]> wrote: > > > > > > You have two functions with the same name. The one that actually gets > > > > > executed (in Firefox) is this one: > > > > > > function createMarker(point,html) { > > > > > var marker = new GMarker(point); > > > > > GEvent.addListener(marker, "click", function() { > > > > > marker.openInfoWindowHtml(html); > > > > > }); > > > > > return marker; > > > > > } > > > > > > Note also that your other createMarker function expects to be passed > > > > > three arguments, and it doesn't return a reference to the marker, and > > > > > it's out of scope when you make the call > > > > > var marker = createMarker(point,htmlString); > > > > > > -- > > > > > Mike Williamshttp://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
