Hi, I've been working quite in-depth with OpenLayers for a while now without facing any significant problems. However, I recently discovered something that puzzled me big time. The concern I encountered was during handling of an event for selecting a feature using the basic select control. When working with the source element of the event object (which, in this case, is the VML element to be selected), and trying to GET a 'type' attribute from it, all the elements' attributes evaluate to 'Failed' and its downhill from there on. A simple example of what I'm talking about would be running this basic line of code, for some existing geometry: Var x = srcElement.type ( where srcElement could be any VML element like $( 'OpenLayers.Geometry.Polygon_175') ) The error is only caused by the getting of the 'type' attribute from the vml, but if I try setting that attribute (srcElement.type = ""), then everything is still ok. Personally, we do not need the 'type' attribute in our logic, however, the concern was caused by a third party tool (An Infragistics control) which handles form events and accesses some attributes of the event objects' srcElement, including 'type', which leads to the failure in the application. To work around it from the OpenLayers API, I tried to add the 'type' attribute with en empty string value during the creation of the vml node in the renderer, and off-course as I mentioned, no problem with setting, but no luck with getting. The evaluation of the expression still led to the same 'failed' value of all attributes of the vml element. I'd rather not modify the infragistics' js source files, but if there is no other way, I will do so. The browser I am using is IE v7.0. Any help concerning this issue is truly appreciated.
Thank You, [cid:image006.png@01C995B5.51732690] [cid:image003.gif@01C995B1.F69500C0] NADER CHOUMAN Software Engineer 110 Wall Street, 15th Floor New York, NY 10005 Tel 212.635.0100 x245 Fax 212.635.0030 nad...@wsn.net<mailto:nad...@wsn.net> www.wsn.net [cid:image005.gif@01C995B1.F69500C0]<http://www.wsn.net/default.aspx> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. Thank You.
<<inline: image003.gif>>
<<inline: image005.gif>>
<<inline: image006.png>>
<<inline: image007.png>>
_______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev