Hi wei, The spec doesn't provide a .setData() method, it actually provides a .data instead. In other words you should use:
evt.target.firstChild.data = 'hello,where are you'; For more info see http://jwatt.org/svg/authoring/#asv-getters-and-setters Regards, Jonathan On 12/10/05, zou wei <[EMAIL PROTECTED]> wrote: > > Hi: > > the following code works at IE+adobe, > but not in FF. should I use something other than > setData()? > > thanks > wei > > <?xml version="1.0" standalone="no"?> > <svg width="10cm" height="3cm" viewBox="0 0 1000 300" > xmlns="http://www.w3.org/2000/svg" version="1.1"> > <desc>Example text01 - 'Hello, out there' in > blue</desc> > <script type="text/ecmascript"> > <![CDATA[ > > function show(evt){ > evt.target.firstChild.setData('hello,where are > you'); > } > ]]> > </script> > > <text x="250" y="150" > font-family="Verdana" font-size="55" > fill="blue" onmouseover="show(evt);" > > Hello, out there > </text> > > </svg> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > ----- > 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 > > > > > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/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/

