For testing purposes, I placed my test-html in data/www on my local
geoserver, and now the feature-info requests work fine.
Thanks for the nudge in the right direction ;-)
What confused me was that there were was no logging (geoserver, firebug
console, ..) that indicated anything was wrong... All I was getting, was an
On Mon, May 17, 2010 at 16:03, Arne Kepp <arne@...> wrote:
> Probably http://en.wikipedia.org/wiki/Same_origin_policy , which is
> usually solved using a proxy.
> Be sure to check the Console in Firebug.
> On 05/17/2010 03:56 PM, Geert Vermeiren wrote:
>> Hi all,
>> I'm working on a very small application, which is actually just an
>> adaptation of the Openlayers demo layer preview.
>> Ie. I want to show a map using Openlayers, and when the user clicks the
>> map, the feature-info of the clicked features is shown below the map.
>> Easy huh ? That's what I thought...
>> 1) The OL-layer-previews work fine on my machine.
>> 2) I created my own HTML file and configured OL as it is configured in the
>> OL layer previews.
>> 3) When I open the file in my browser (no web-server, just html file
>> opening in the browser), all works fine, except for showing the
>> feature-info. When I check the background request/response in firebug, the
>> response that the script gets from GeoServer is empty. However, when I
>> duplicate the request URL in another browser window, I do get the expected
>> feature-info in a nice table.
>> More observations: with verbose-logging activated in GeoServer, I see the
>> correct SQL request being fired at my postgis db, and the sql even gives me
>> the correct rows I was expecting. Only thing is that the response doesn't
>> seem to be sent back to my browser/script.
>> So I tried another approach:
>> I opened an OL layer preview (in which feature info is correctly shown),
>> saved the source HTML, and tried opening that saved html in my browser. All
>> works fine except.. getting the feature info...
>> Does this have anything to do with sessions on GeoServer ?
>> Am I missing something basic here ? Has anyone tried something similar and
>> point me in the right direction ?
>> Many thanks in advance,
>> Kind regards,
>From the shade of the ancient birches on the hilltop, Woozong the
ExtraOrdinator gazed through his televiewer into the valley to observe the