Hi,

I want to use the YUI lib in a SVG environment. I started with the
eventmodel.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; [
]>

<svg onload="YAHOO.example.dom.init (evt)"
xmlns:xlink="http://www.w3.org/1999/xlink";
     xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/";
     a3:scriptImplementation="Adobe">
     
    <script type="text/ecmascript"
a3:scriptImplementation="Adobe"><![CDATA[
    document = svgDocument;
    navigator = new Object;
    navigator.userAgent = "/msie/gi"; // is_ie becomes true
    ]]></script>     
    <script type="text/ecmascript" a3:scriptImplementation="Adobe"
            xlink:href="./build/yahoo/yahoo.js"/>
    <script type="text/ecmascript" a3:scriptImplementation="Adobe"
            xlink:href="./build/event/event.js"/>


  <svg pointer-events="none" preserveAspectRatio="xMinYMin slice"
width="39%" height="55">
    <g id="diagramtitle" style="filter:url(#closeDropShadow)">
      <rect id="diagramtitlebackground" width="100%" height="800%"
style="fill:url(#backgroundGradient)"/>
      <rect id="diagramtitlebackground2" width="100%" height="55"
fill="none" stroke-width="2" stroke="black"/>
      <rect id="dirtyindicator" width="6" height="6" display="none"
stroke-width="1" stroke="black" fill="#f00" />
    </g>
  </svg>
  
    <script type="text/ecmascript"
a3:scriptImplementation="Adobe"><![CDATA[
  YAHOO.namespace('example.dom');

  YAHOO.example.dom.init = function() {
     var move = function(e) {
       alert ('Move');
     };
   
     YAHOO.util.Event.addListener (document.getElementById
("diagramtitle"), 'mousedown', move);
  };
]]></script>
  
</svg>

I got no message and I am using the adobe plugin in combination with IE 6.

Any help welcome!

John Ophof






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



Reply via email to