[ka-Map-users] Further highlight questions

Wagner, Jeffrey S. (DMS/CISD) j.wagner at ngc.com
Thu Nov 16 19:13:06 EST 2006


You may need to set the response type to text/xml

-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
Christopher Schmidt
Sent: Thursday, November 16, 2006 3:45 PM
To: Cheung Alan Kwok Lun
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] Further highlight questions

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
_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users



More information about the ka-Map-users mailing list