Hi Stephen and Martin both approaches worked for me. Thanks for your help.
Regards Olaf Martin Honnen wrote: > > > --- In svg-developers@yahoogroups.com > <mailto:svg-developers%40yahoogroups.com>, Olaf Schnabel <[EMAIL PROTECTED]> > wrote: > > > I have a problem with the HTML-to-SVG communication in Firefox. I > made a > > simple example: > > > function init() > > { > > var svgdoc = document.getElementById("mySVG").getSVGDocument(); > > With Firefox and an object element you can access respectively need to > access the contentDocument property e.g. > var object = document.getElementById("mySVG"); > var svgDoc = null; > if (object != null) { > if (object.contentDocument != null) { > svgDoc = object.contentDocument; > } > else if (typeof object.getSVGDocument != 'undefined') { > svgDoc = object.getSVGDocument(); > } > } > if (svgDoc != null) { > svgDoc.getElementById("datetext").firstChild.nodeValue = "30"; > } > > contentDocument is defined in the W3C DOM Level 2 HTML module, see > <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-38538621 > <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-38538621>> > -- Dr. Olaf Schnabel ETH Zurich Institute of Cartography CH-8093 Zurich Switzerland tel: ++41 44 633 3031 fax: ++41 44 633 1153 e-mail: [EMAIL PROTECTED] www1: http://www.ika.ethz.ch/schnabel www2: http://www.e-cartouche.ch ----- 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/