[Geoserver-users] response.resaponseXML is null in Firefox and IE

Hi all.

I'm using GS 1.6.3. How I get value of an attribute of layer when I click with the mouse on the graphical object? I try use responseXML but it is null when the callback function start.

Thanks in advance,

Alt

Did you check the mime-type of the reponse is text/xml?

It could be one of the OGC specific mime-types, and then you need a proxy or something else to override the mimetype to text/xml.

Best regards,
Bart

Alfonso Fraguas Bravo wrote:

Hi all.

I'm using GS 1.6.3. How I get value of an attribute of layer when I click with the mouse on the graphical object? I try use responseXML but it is null when the callback function start.

Thanks in advance,

Alt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde@anonymised.com
http://www.osgis.nl

Alfonso Fraguas Bravo ha scritto:

Hi all.

I'm using GS 1.6.3. How I get value of an attribute of layer when I click with the mouse on the graphical object? I try use responseXML but it is null when the callback function start.

I don't know what "responseXML" is, but have you looked into the GeoServer map preview? There is some OpenLayers code leveraging GetFeatureInfo that returns the attributes of the features when
you click on them

Cheers
Andrea