Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] Re: get entity value by script?

Expand Messages
  • andre m. winter
    thanks wesley, that is great! it also works in NN4 + AV3 the permanent question behind that: is this somehow standardized or is ist adobe stuff? andré
    Message 1 of 14 , Jul 2, 2003
    • 0 Attachment
      thanks wesley,

      that is great! it also works in NN4 + AV3

      the permanent question behind that: is this somehow standardized or is
      ist adobe stuff?

      andré

      >Hi Andre,
      >
      >The following works in ASV3 + IE6:
      >
      >-- Wesley
      >
      ><?xml version="1.0" encoding="ISO-8859-1" ?>
      ><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG
      >20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-
      >20010904/DTD/svg10.dtd" [
      > <!ENTITY SomeName "This is the value for SomeName!!!">
      >]>
      ><svg onload="FindEntity(evt)" preserveAspectRatio="xMidYMid meet"
      >zoomAndPan="magnify" xmlns:xmlns="http://www.w3.org/2000/svg">
      ><script>
      ><![CDATA[function FindEntity(evt)
      >{
      > var entities = document.doctype.entities;
      > var entity= entities.getNamedItem("SomeName");
      > var value= entity.firstChild.nodeValue;
      > alert("entity SomeName has value " + value);
      >}
      >]]></script>
      ></svg>
      >
      >
      >
      >
      >
      >-----
      >To unsubscribe send a message to: svg-developers-unsubscribe@yahoogroups.com
      >-or-
      >visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
      >----
      >
      >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
    • georg held
      hi andre ... these attributes are specified in dom2 core: hope this helps cheers georg
      Message 2 of 14 , Jul 2, 2003
      • 0 Attachment
        hi andre

        > that is great! it also works in NN4 + AV3
        >
        > the permanent question behind that: is this somehow standardized or is
        > ist adobe stuff?
        >
        these attributes are specified in dom2 core:
        <http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/>

        hope this helps

        cheers georg
      Your message has been successfully submitted and would be delivered to recipients shortly.