I agree with akkad that the issue is the xml generated from my PHP code. I'm currently revising this and will update once I find the fix. Thanks to all for your input.
On Mar 30, 12:53 pm, akkad <[email protected]> wrote: > My guess is that carlosrodriguez's issue is not related to JavaScript, > but with the XML file which is generated on server side in php. The > XML file might not be well-formatted so when it is loaded in the map > page will throw different kind of errors. > > Regards > > On Mar 30, 7:21 pm, "[email protected]" <[email protected]> > wrote: > > > On Mar 30, 8:42 am, akkad <[email protected]> wrote: > > > > I had this issue last week too. > > > In my case was not IE issue, but general. > > > It was about parsing characters to XML. > > > I recommend you to use CDATA to avoid characters issue. > > > > This is a portion of my php code: > > > > function parseToXML($htmlStr) > > > { > > > $xmlStr=str_replace('<','<',$htmlStr); > > > $xmlStr=str_replace('>','>',$xmlStr); > > > $xmlStr=str_replace('"','"',$xmlStr); > > > $xmlStr=str_replace("'",''',$xmlStr); > > > $xmlStr=str_replace("&",'&',$xmlStr); > > > $xmlStr=str_replace(chr(38),'&',$xmlStr); > > > $xmlStr=str_replace("/n",'',$xmlStr); > > > return $xmlStr; > > > > } > > > > function parseD($htmlStr) > > > { > > > $xmlStr=str_replace('/\'/','’', $htmlStr); > > > $xmlStr=preg_replace('/[^(\x20-\x7F)]*/','',$xmlStr); > > > return $xmlStr; > > > > } > > > > echo '<lat>'.parseToXML($row['latitude']).'</lat>'; > > > echo '<lng>'.parseToXML($row['longitude']).'</lng>'; > > > echo '<info><![CDATA['.parseD($row['remarks1']).']]></info>'; > > > > You can read more about the CDATA section > > > athttp://www.w3.org/TR/REC-xml/#sec-cdata-sect > > > Some of us don't use php, so php code isn't very useful... > > > -- Larry > > > > Best regards > > > > On Mar 30, 6:19 pm, "[email protected]" <[email protected]> > > > wrote: > > > > > On Mar 30, 6:38 am, carlosrodriguez <[email protected]> wrote: > > > > > > Thanks to all for your replies. I had a function that would try to get > > > > > the lat, lon values based on the address if it didn't exist. Let me > > > > > try to get the values for all, or turn off the ones without it and > > > > > test again. > > > > >http://www.geocodezip.com/GenericMapBrowser_20100329g.asp?lngattr=lon... > > > > > -- Larry > > > > > > Glad to see it is working on IE6 and IE7. I have been testing on IE8 > > > > > which throws a Automated Server, whatever craziness Microsoft error. > > > > > > On Mar 29, 7:57 pm, "[email protected]" <[email protected]> > > > > > wrote: > > > > > > > On Mar 29, 12:42 pm, "[email protected]" <[email protected]> > > > > > > wrote: > > > > > > > > On Mar 29, 9:51 am, carlosrodriguez <[email protected]> wrote: > > > > > > > > > I have the following > > > > > > > > script:http://anthonyscoalfiredpizza.com/js/map.js > > > > > > > > running on this > > > > > > > > pagehttp://anthonyscoalfiredpizza.com/locations.php > > > > > > > > which works very well on Firefox, Safari and Chrome but not on > > > > > > > > IE. If > > > > > > > > I comment out the Gxml.parse then the map load without problems > > > > > > > > but no > > > > > > > > markers, and no errors, are shown. As soon as I bring it back, > > > > > > > > markers > > > > > > > > are shown on every other browser except the IE family. > > > > > > > > > I've tried several suggestions, adding a timeout to IE using an > > > > > > > > actual > > > > > > > > xml file instead of a PHP, changing my security settings etc > > > > > > > > with no > > > > > > > > luck. > > > > > > > > It "works" in IE6 for me, but the data is bad. You have entries > > > > > > > in > > > > > > > your xml which don't contain valid latitude and longitude values, > > > > > > > for > > > > > > > example: > > > > > > > <marker name="Carle+Place" state="NY" > > > > > > > address="135+Old+Country+Road%2C > > > > > > > +11514%2C+Carle+Place%2C+NY+" lat="" lon="" phone="" > > > > > > > type="noactive" / > > > > > > > > IE tends to handle things like this differently than standards > > > > > > > compliant browsers. > > > > > > > This shows the "bad points" (those without latitude/longitude > > > > > > values):http://www.geocodezip.com/GenericMapBrowser.asp?lngattr=lon&url=http:... > > > > > > > -- Larry > > > > > > > > -- Larry- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > -- 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.
