> ASV6 seem to lose the focus on the active rectangle. Therefore, the 
> onmouseout event (set stroke to "none") doesn't work anymore (except 
> Firefox 3, which seems to interpret the code correct for me).
> Has anyone a workaround for this problem?

Seems to be an(other) ASV issue! :-D

Notice that if you click in the active element, therefore bringing
focus to it, it will behave as expected afterwards (remove stroke
after moving the mouse out of the element).

Change which seems to fix it:

<code>
  var putToTop = function(evt)
  {
   // get node reference
   var element = evt.target;
   if (evt.type == "mouseover")
   {
    // change stroke
    element.setAttributeNS(null,"stroke","red");
    
    //appendChild after the last child
    //element.parentNode.appendChild(element);
    // trick to avoid messing up ASV6's internal state
    setTimeout("changeZIndex", 0);
   }
   else
   {
    // remove stroke
    element.setAttributeNS(null,"stroke","none");
   }
  };
  var changeZIndex = function()
  {
   // appendChild after the last child
   // NOTE: "element" variable is assumed as previously set
   element.parentNode.appendChild(element);
  };
</code>

Please consider adding this issue+workaround to known ASV issues [1]. ;-)

Although this likely works in other SVG implementations also, some
more tests should be performed (only Firefox 2 was also tested).

Hope this helps,

 Helder Magalhães

[1] http://wiki.svg.org/Known_Bugs#ASV


------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to