It's also possible to JavaScript 1.5 getters and setters to build your own ASV compatible extensions using javascript.
http://developer.mozilla.org/en/docs/ Core_JavaScript_1.5_Guide:Working_with_Objects#Defining_Getters_and_Sett ers I'm not sure if JavaScript 1.5 support shipped in FireFox 1.5 or not though. -eric On Dec 9, 2005, at 5:05 PM, Jonathan Watt wrote: > 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: svg-developers- > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit > my membership" > ---- > Yahoo! Groups Links > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/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/

