The question is, what is del? What does it do? Since you set the event listener at a use element I think it is probably a problem with event.target vs. event.currentTarget. Is anything reported on the error console when you click at the element? You can try putting an alert right as the first command in the event handler. If the alert window appears then you know that the event listener registration was successful, and the problem is in your event handler.
--- In svg-developers@yahoogroups.com, chandra reddy <pcr_re...@...> wrote: > > Dear all > > I have used following code to add event listner, it is working in IE but not in Mozilla > if any body knows solution please let me know. > > // > var newUseEl = document.createElementNS(svgNS,"use"); > newUseEl.setAttributeNS(null,"id",'refp1'); > newUseEl.setAttributeNS(null,"x",p); > newUseEl.setAttributeNS(null,"y",s); > newUseEl.setAttributeNS(xlinkNS,"href","#s01"); > newUseEl.setAttributeNS(null,"visibility",'visible'); > newUseEl.addEventListener("click",del,true); > document.getElementById("contents").appendChild(newUseEl); > object.setAttribute('visibility','visible'); > > thanks in advace > P chandra shaker reddy > > > > > [Non-text portions of this message have been removed] > ------------------------------------ ----- To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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:svg-developers-dig...@yahoogroups.com mailto:svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/