please forget my previous posting about event listeners as objects ...
I accidentally had the Corel SVG viewer activated in Internet-Eplorer and all the other browsers had ASV ... Sorry, Andreas --- In [EMAIL PROTECTED], "Andreas Neumann" <[EMAIL PROTECTED] > wrote: > > Hi all, > > I have a problem with adding the "SVGResize" event with . > addEventListener. > > Please have a look at: > > http://www.karto.ethz.ch/neumann/temp/initTest.svg > > It use the init() function to add an event listener of type > "SVGResize" to the SVG root element. The event listener happens to be > an object. > > Code snippet: > -------------- > > function init(evt) { > var svgroot = evt.target.ownerDocument.documentElement; > svgroot.addEventListener("SVGResize",myResizeObject,false); > } > > ------------ > > The handler simply alerts("resized") when the window is resized. > > It works in Batik and in all browsers except Internet Explorer. In > Internet Explorer it works fine, if the second parameter of the . > addEventListener() method is a function, but it fails if it is an > object. > > What am I doing wrong here? > > Thanks for any ideas on that problem! > > Andreas ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/ <*> 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/

