Re: JavaScript Frameworks and svg
marffin <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Oct 10, 5:22 am, jhon <[email protected]> wrote: > Integration of script.aculo.us and svg. > > i have the following file: > > test1.xml > the source: > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>DEMO</title> > <script src="prototype.js" type="text/javascript"></script> > <script src="scriptaculous.js" type="text/javascript"></script> > </head> > <body id="body" style="position:absolute; z-index:0; border:1px solid > black; left:5%; top:5%; width:90%; height:90%;"> > > <script type="text/javascript"> > // <![CDATA[ > function shake_these(){ > new Effect.Shake("shake10", {distance:100});} > > // ]]> > </script> > <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 > 100" preserveAspectRatio="xMidYMid slice" style="width:100%; height: > 100%; position:absolute; top:0; left:0; z-index:-1;"> > <rect id="shake10" x="10" y="50" width="20px" height="10px" fill="red" > onclick="new Effect.Shake(this, {duration:2.0}); return false;"/> > </svg> > </body> > </html> > ... > I have the following error (error console firefox 3.0.1): > > Error: document.write is not a function > Source file: file:///home/hmusvg/Escritorio/SVG/scriptaculous.js > Line: 30 > > Know how to integrate this?, is possible?... > > Some way for integrate JavaScripts Frameworks en svg/xml files for > visualization in browsers? > > I appreciate your help. > Thanks- isn't this an HTML file? why named as test1.xml?