[OpenLayers-Dev] Problem with events in OpenLayers 2.5

victor victor 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 ;-)

Best regads.

----- 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
 don't
> 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,
>   this.mouseover);
> it is different than this one
> 
>     this.marker.events.register("mouseover",  this.marker,
>   this.mouseover);
> 
> 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
 property
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? 

Regards,
-- 
Christopher Schmidt
MetaCarta






       
____________________________________________________________________________________
Sé un Mejor Amante del Cine                         
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071016/c731e537/attachment.html


More information about the Dev mailing list