hi All,
  in my case I've two files menu.svg and main.js
  in menu.svg I write
<svg>
 <defs> 
    <menu id="Menu"> 
          <header>Custom Menu</header> 
          <item id="link">link</item> 
          <item id="delete">delete</item> 
     </menu>
  </defs> 
</svg>

  and in main.js, I want to assign a function to the "link" item, 
but I find my way does not work. I tried like:
  this.main = function(){
    svgdoc.getElementById("link").setAttribute("onactivate", 
this.func);//not work
    //or 
    svgdoc.getElementById("link").addEventListener("onactivate", 
this.func, false);//not work
    this.func = function(){
    alert("sdf");
    }
  }
  
  Thank you very much in advance



-----
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