[OpenLayers-Dev] OpenLayers and Prototype conflict in IE

gingerbbm stuart.jones at jacobs.com
Thu Feb 18 05:37:18 EST 2010

Dear all

There seems to be a conflict between OpenLayers and Prototype in IE6, 7 and

If you declare OpenLayers in the <head> section before the Prototype
declaration, Event.pointerX() is defined. But include OpenLayers after
Prototype and Event.pointerX() is not defined. Examples:



I've been through the forum history, and found the following regarding
placement of the declarations and the effect on the Event object:



It's a problem for me because I want to load the OpenLayers library
dynamically in order to speed up the intial page load in my application and
make the experience better for my users. I hadn't noticed any issues until
including the Prototip tooltip library which calls Event.pointerX(). Of
course this is only a problem in IE.

If anyone has any ideas of a workaround I'm all ears!

Many thanks
View this message in context: http://n2.nabble.com/OpenLayers-and-Prototype-conflict-in-IE-tp4591037p4591037.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.

More information about the Dev mailing list