--- In svg-developers@yahoogroups.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>



-----
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/
 

Reply via email to