[OpenLayers-Users] FetaureInfo not displaying

Imran Rajjad rajjad at gmail.com
Thu Jul 22 05:42:37 EDT 2010


Hi.
Is geoserver and your webpage in different domains? if Yes? then are
you request wfs response in XML format (e.g) GML, if Yes? then it will
not work because XML data can only be retreived through same domanin.
This is called SOP , same origin policy that all browsers follow, if
your page came from www.abc.com it cannot post xmlhttp request to
www.xyz.com .. in your case you should use JSON

regards,
Imran

On Thu, Jul 22, 2010 at 2:24 PM, M. Rizwan Khan <mrizwan1.khan at gmail.com> wrote:
> Hi All,
>
> I am using Geoserver and openlayers for visualizing, when i am accessing it
> with IP Address (http://192.168.1.45:18080/........) it is working fine, but
> if a view any layer using the Domain (http://www.some-name.com/........)
> name i am unable to view the info of the features when clicked on it.
> I could see the Map in both the case, just the problem is of the response of
> GetFeatureInfo.
> Could anyone help me out with this.
>
> Regards,
> M. Rizwan Khan
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
I.R



More information about the Users mailing list