[OpenLayers-Dev] Problem with events in OpenLayers 2.5
laventa147 at yahoo.es
Tue Oct 16 12:19:41 EDT 2007
I'm sorry, it wasn't a problem of OpenLayers, it was a problem of my code. I am going to keep testing OpenLayers and the next time I'll try to ensure that it is not my problem ;-)
----- Mensaje original ----
De: Christopher Schmidt <crschmidt at metacarta.com>
Para: victor victor <laventa147 at yahoo.es>
CC: dev at openlayers.org
Enviado: martes, 16 de octubre, 2007 15:44:45
Asunto: Re: [OpenLayers-Dev] Problem with events in OpenLayers 2.5
On Tue, Oct 16, 2007 at 01:38:35PM +0000, victor victor wrote:
> The same behavior. I only draw the border to define the icon area. I
> know what is happening but the behavior is different with diferent
target objects, this is:
> if I code something like this
> this.marker.events.register("mouseover", this,
> it is different than this one
> this.marker.events.register("mouseover", this.marker,
> In the second case it doesn't work in IE 6.0 neither in Firefox.
Well, I don't know what 'doesn't work' means -- the difference between
these is that in the latter case, the 'this' inside this.mouseover is
different, so you might be getting an error thrown because some
used inside this.mouseover doesn't exist...
Check your error console? Get Firebug, and put a console.log() inside
this.mouseover to see if it's working?
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev