Thanks for your reply. the same code is working fine in IE, so there is no problem with code. when i use this code to mozilla the event listner "del" is not at all invoking.can you help me out please.
thanks in advance P.Chandra Shaker Reddy ________________________________ From: Frank Bruder <[email protected]> To: [email protected] Sent: Saturday, January 3, 2009 6:46:45 AM Subject: [svg-developers] Re: addEventListener Not working in mozilla 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.createElem entNS(svgNS, "use"); > newUseEl.setAttribu teNS(null, "id",'refp1' ); > newUseEl.setAttribu teNS(null, "x",p); > newUseEl.setAttribu teNS(null, "y",s); > newUseEl.setAttribu teNS(xlinkNS, "href","# s01"); > newUseEl.setAttribu teNS(null, "visibility" ,'visible' ); > newUseEl.addEventLi stener("click" ,del,true) ; > document.getElement ById("contents" ).appendChild( newUseEl) ; > object.setAttribute ('visibility' ,'visible' ); > > thanks in advace > P chandra shaker reddy > > > > > [Non-text portions of this message have been removed] > [Non-text portions of this message have been removed] ------------------------------------ ----- 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/

