I am newbie for java script. So when I try to specify attribute value from my
layer.
I got the message error from IE8
#############################


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C;
.NET4.0E)
Timestamp: Thu, 6 May 2010 08:58:57 UTC


Message: Object doesn't support this property or method
Line: 197
Char: 13
Code: 0
URI: http://localhost/map.php



Here this is my modify WMSGetFeatureInfo code
######################################

                        var info = new OpenLayers.Control.WMSGetFeatureInfo({
            url: 'http://localhost:8080/geoserver/wms', 
            title: 'Identify features by clicking',                             
                        
                        layers: [herb],
                        vendorParams: {"FEATURE_COUNT": "100"},            
                        //maxfeatures: 200,
                        vendorParams: { format : 'image/png' }, 
                        //handlerOptions: {'hover':{delay:500}},                
         
                        eventListeners: {
                    getfeatureinfo: function(event) {
        
                                if (popup != null) {
                        popup.destroy();
                            popup = null;
                        }       
                                var features = event.features;                  
                                
                                if((event.text).length != 709 && 
(event.text).length < 1000){
                                        map.addPopup(popup = new 
OpenLayers.Popup.FramedCloud(
                        "chicken",                                              
        
                                                
map.getLonLatFromPixel(event.xy),                                               
                        null,
                                                event.getAttributes('name') + 
"<br>" +
                                                " http://www.google.co.th 
www.google.co.th ",
                        null,
                        true
                    )); 
                                }}                                              
                                                        
            }
        });
        map.addControl(info);
        info.activate();                                          



Can anyone fix my error or tell me the problem?

Thank you
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Newbie-I-can-t-specify-attribute-in-WMSGetFeatureInfo-tp5013240p5013240.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to