Ok, I have solved the problem. The javascript does not have the proper rights to getinfo if it is not on the same server.<br>So either a proxy needs to be set-up or just installing the geo ext in the same server as geoserver solves the problem.<br>
<br>BR,<br>Ozgur<br><br><div class="gmail_quote">On Tue, Feb 16, 2010 at 8:42 AM, Ozgur Zan <span dir="ltr"><<a href="mailto:ozgzan@gmail.com">ozgzan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Dear Tim,<br><br>Thanks for your support. I used the GetFeatureInfo example from OpenLayers but it did not work. The error message is that it can not find the "proxy.cgi". Do you know what shall we write or redirect for the value of "OpenLayers.ProxyHost"? <br>
<br>BR,<br>Ozgur<br><br><pre><br></pre><br><br></div><div class="gmail_quote"><div class="im">On Fri, Feb 12, 2010 at 1:00 PM, <span dir="ltr"><<a href="mailto:users-request@geoext.org" target="_blank">users-request@geoext.org</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Send Users mailing list submissions to<br>
<a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@geoext.org" target="_blank">users-request@geoext.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@geoext.org" target="_blank">users-owner@geoext.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
</div> 1. Re: One basic question (Tim Schaub)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 11 Feb 2010 11:15:32 -0700<br>
From: Tim Schaub <<a href="mailto:tschaub@opengeo.org" target="_blank">tschaub@opengeo.org</a>><br>
Subject: Re: [Users] One basic question<br>
To: <a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a><br>
Message-ID: <<a href="mailto:4B744944.4030104@opengeo.org" target="_blank">4B744944.4030104@opengeo.org</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Ozgur Zan wrote:<br>
> Dear List member,<br>
><br>
> I have installed Geoserver and using Geo Ext (OpenLayers, Ext Js, GWT) I<br>
> design the interfaces for navigating layers in a map. I appreciate if you<br>
> can help me with the following basic question:<br>
><br>
> - The aim is to display further information about the place where the user<br>
> clicks in the WMS layer. It already works in Geoserver but not in GeoExt. I<br>
> do not know how to fetch (which protocol, format, functions to use) data<br>
> from Geoserver to Geo Ext.<br>
><br>
<br>
The WMS protocol defines a GetFeatureInfo method. You can issue a<br>
GetFeatureInfo to get information about any number of layers based on a<br>
user's click. When the response returns, you can display the server<br>
generated info in a popup (for example).<br>
<br>
Relevant example from OpenLayers:<br>
<a href="http://openlayers.org/dev/examples/getfeatureinfo-popup.html" target="_blank">http://openlayers.org/dev/examples/getfeatureinfo-popup.html</a><br>
<br>
The WFS protocol defines a GetFeature method. You can issue a<br>
GetFeature request to get feature data based on a click (bounding box or<br>
other filter in a query). When the response returns, you can render any<br>
features or feature attributes on the client.<br>
<br>
Relevant example from OpenLayers:<br>
<a href="http://openlayers.org/dev/examples/getfeature-wfs.html" target="_blank">http://openlayers.org/dev/examples/getfeature-wfs.html</a><br>
<br>
The WMSGetFeatureInfo control from OpenLayers can be wrapped in a<br>
GeoExt.Action if you want to add a button to an Ext toolbar:<br>
<a href="http://dev.geoext.org/trunk/geoext/examples/toolbar.html" target="_blank">http://dev.geoext.org/trunk/geoext/examples/toolbar.html</a><br>
<br>
You can also use a GeoExt.Popup to display content anchored to the map:<br>
<a href="http://dev.geoext.org/trunk/geoext/examples/popup.html" target="_blank">http://dev.geoext.org/trunk/geoext/examples/popup.html</a><br>
<br>
Hope that helps point you in the right direction.<br>
<br>
Tim<br>
<br>
> Thanks for your support in advance.<br>
> Ozgur ZAN<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
<div>><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
</div>--<br>
Tim Schaub<br>
OpenGeo - <a href="http://opengeo.org" target="_blank">http://opengeo.org</a><br>
Expert service straight from the developers.<br>
<div><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
</div>End of Users Digest, Vol 13, Issue 9<br>
************************************<br>
</blockquote></div></div></div><br>
</blockquote></div><br>