[OpenLayers-Users] wmsgetfeatureinfo with url on alternative port not firing on client side

Giuseppe De Marco peppelinux at yahoo.it
Fri Jul 13 02:46:55 PDT 2012


I've:

                wmsgetfeatinfo: new OpenLayers.Control.WMSGetFeatureInfo({
                                    url: 'http://160.97.12.223:8000/cgi-bin/mapserv?map=/var/www/difsuolo_luci_mapfile/mapfile.map', 
                                    //url: 'http://160.97.12.223:80/cgi-bin/mapserv?map=/var/www/difsuolo_luci_mapfile/mapfile.map',
                                    title: 'Identify features by clicking',
                                    infoFormat:'text/html',
                                    click: 'true',
                                    queryVisible: true,
                                    eventListeners: {
                                        getfeatureinfo: function(event) {
                                            map.addPopup(new OpenLayers.Popup.FramedCloud(
                                                "chicken", 
                                                map.getLonLatFromPixel(event.xy),
                                                null,
                                                event.text,
                                                null,
                                                true
                                            ));
                                            }
                                        }
                                    }),

If I use url with port 80 it works, if I use url with port 8000 the openlayers client didn't fire any event on click. In browser debug console I didn't view any xhrequest, neither on server.

I use openlayers 2.11 and this problems is on firefox and google chrome.
I use ubuntu 12.04.

I saw many examples, on web, that uses alternative ports with wmsgetfeature info and I'd like to understand this behaviour first of implement some alternative solution.

Cheers,
g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120713/c2ee4dfe/attachment.html>


More information about the Users mailing list