[ka-Map-users] Further highlight questions

Christopher Schmidt crschmidt at crschmidt.net
Thu Nov 16 18:45:28 EST 2006


On Fri, Nov 17, 2006 at 12:28:55PM +1300, Cheung Alan Kwok Lun wrote:
> Christopher Schmidt wrote:
> >
> >Is your page which is tryign to load the XML being loaded from
> >http://130.216.17.79/something ? If you are trying to load content from
> >XML using XMLHttpRequest as XMLOverlay does, you need to be requesting
> >it from the same host as the host of your page, due to javascript
> >security restrictions.
> >
> >Regards,
> >  
> Thanks for the extremely quick reply Christopher! :) Everything sits on 
> the development server I setup on my laptop, so the xml request is 
> performed upon the same server. When I look at the xmlDocument from 
> loadXmlCallback by examining xmlDocument.firstChild.firstChild.data, it 
> returns "XML Parsing Error: syntax error
> Location:http://130.216.17.79/kanew/ Line Number 1, Column 50
> 
> So it is not related (at the momen) to the structure of the xml being 
> wrong... Any idea?

I'd recommend grabbing Firebug from
https://addons.mozilla.org/firefox/1843/ , installing it, turning on
"Show XMLHttpRequests", and then checking to make sure the content
you're getting back is the content you expect. It may be that your code
is throwing an error rather than returning XML, which might be part of
your problem.

Good luck.

Regards,
-- 
Christopher Schmidt
Web Developer


More information about the ka-Map-users mailing list