Thank you so much for the response Charles.  The showInfo function seems to
fire once at init but not upon click, as expected.  I'm having trouble
identifying where exactly is choking, as stepping through openlayers.js line
by line is about as clear as mud, and I'm not even seeing where the event is
being sent to the Mapserver (despite my mapserver having a logged record of
the request being fetched).

I slipped in the eventhandler, but my newbishness is preventing me from
using it effectively.  What line would I place the breakpoint on to ensure
that upon click, when the event is sent to my mapserver for the query, that
I can see what results are being sprung and what part is choking up?


Charles Galpin-2 wrote:
> 
> Derek, have you put a breakpoint in the showInfo function to confirm it's
> being called and see whats returned? The docs say the event is
> 'getfeatureinfo' (all lowercase) so try that if the method is not being
> called. If that doesn't work, then try put the event listener inline 
> 
> click: new OpenLayers.Control.WMSGetFeatureInfo({ 
>       ….
>       eventListeners: {
>               getfeatureinfo: function(evt) {
>                       $('nodelist').innerHTML=evt.text; 
>               }
>       }
> }),
> 
> BTW, you mention Java a few times, but I think you mean javascript. There
> is a big difference, just FYI  :)
> 
> hth
> charles
>  
> On Dec 8, 2010, at 12:37 PM, Derek Price wrote:
> 
>> 
>> Update: I've run the query coming out of the mapserver.log file, and not
>> only
>> is the click event properly executing, but the query does return results. 
>> The problem seems to be with displaying the query results.  Are there any
>> known hitches with the showInfo function, or a good way I could check
>> when
>> it fires at runtime?
>> -- 
>> View this message in context:
>> http://osgeo-org.1803224.n2.nabble.com/Having-the-worst-time-with-a-simple-getFeatureInfo-request-tp5813330p5816059.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 
> 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Having-the-worst-time-with-a-simple-getFeatureInfo-request-tp5813330p5816304.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to