- From: Stephen Bowen <skeeterow@netscape.net>
- Date: Sun, 16 Apr 2000 21:28:52 +0200
- To: www-svg@w3.org
> Notes About This Release (April 11) > Look for the green bullets , indicating new pages, and the maroon bullets , indicating updated > content. New Viewers now have expanded contextual menus (right-click on PCs, ctrl-click on Macs) with > features such as: search for text strings in your image, and view and copy SVG source code. For this > reason, the "view source" links that accompanied all SVG images in this site have been removed. > New converters now export any Type 1 and most TrueType fonts. (Please note, you will need to re-export > any .cef files generated by previous builds in order to comply with the new Viewer specs). > Note that the MIME type for SVG has changed to "image/svg-xml" to conform to the W3C's general scheme > for XML MIME types. You will need to update the MIME type on your servers, and you must install the new > Viewer in order to view the updated content in this Beta Release. > The latest SVG Specification (3/3/00), and to various other implementations of SVG. > > Re: Usage questions on Adobe's SVG viewer > > From: Paton J. Lewis (palewis@Adobe.COM) > Date: Tue, Apr 04 2000 > > *Next message: Richard Colbert: "How do I embed?" > > * Previous message: jhopp@smtp.slip.net: "Re: Usage questions on Adobe's SVG viewer" > * In reply to: Arnold, Curt: "Usage questions on Adobe's SVG viewer" > * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > * Other mail archives: [this mailing list] [other W3C mailing lists] > * Mail actions: [ respond to this message ] [ mail a new topic ] > > ---------------------------------------------------------------------------------------------------- > > Message-Id: <4.2.2.20000404111958.00ad65a0@mail-333> > Date: Tue, 04 Apr 2000 11:35:52 -0700 > To: "Arnold, Curt" <Curt.Arnold@hyprotech.com> > From: "Paton J. Lewis" <palewis@Adobe.COM> > Cc: "'www-svg@w3.org'" <www-svg@w3.org> > Subject: Re: Usage questions on Adobe's SVG viewer > > Curt, > > I've replied with some comments below. > > At 04:16 PM 4/3/00 , Curt Arnold wrote: > >I've have two usage questions that may or not be Adobe viewer specific. > > > >1. I'm a little at a loss on how to calculate a path in a Javascript > >fragment, I wanted to > >do something like: > > > ><script> > >function Curve1_onload() > >{ > > // of course I want to do something much more complicated > > curve.setAttribute("d","M 0 0 L 0.01 390"); > >} > ></script> > ><g style="stroke-width:5px; fill:none; stroke:blue;"> > ><path id="curve" d="M 0 0 L 0 0" onload="Curve1_onload()"/> > ></g> > > > >There are of course numerous things that I could be doing wrong. > > The DOM does not support accessing elements by name like that. In theory, > one way to do what you want would be to pass in the event object and then > call getTarget on that object to determine the target of the event (in this > case, the node with id "curve"). For example: > > <svg> > <script> > function Curve1_onload(event) > { > // of course I want to do something much more complicated > evt.getTarget().setAttribute("d","M 0 0 L 0.01 390"); > } > </script> > <g style="stroke-width:5px; fill:none; stroke:blue;"> > <path id="curve" d="M 0 0 L 0 0" onload="Curve1_onload(event)"/> > </g> > </svg> > > However, in practice there is no way to support onload event handlers on > scripts from within a Netscape plug-in. Therefore the Adobe SVG Viewer does > not support the "onload" event handler on anything other than the "svg" > element, and only under Internet Explorer. Can you trigger your script > through some other means, perhaps with a mouse click? > > >2. I've tried to change the src attribute on an <embed> element in > >Internet Explorer 5, but the SVG control doesn't refresh. > >Stepping through the script debugger shows the src attribute has changed, > >but the display isn't refreshed. > > Preview Release 4 of the Adobe SVG Viewer did not support setting the src > attribute on the embed element in IE5, but the next version of the Adobe > SVG Viewer will support that. > > Pat > > > Plot type: <select name="fatigueType" > > id="fatigueType" onchange="fatigueType_onChange()"><option value="1" > > selected>Cyclic Stress-Strain</option><option > >value="2">Strain-life</option></select> > ><p> > ><input name="checkbox1" type="checkbox" value="ON"><a > >href="details.html">σ<sub>f</sub>'=676</a> > ></p> > ><script type="text/javascript" language="javascript"> > > function fatigueType_onChange() > > { > > > > > >document.all("FatiguePlot").src = > >"ntetra.svg"; > > } > > </script> > ></form> > ></td><td><embed src="cyclic.svg" ID="FatiguePlot" width="100%" > >height="400" type="image/svg"></embed></td> > > > >I'd appreciate any suggestions. Thanks. > > ____________________________________________________________ > Paton J. Lewis > Adobe Systems > 408.536.4754 > > ---------------------------------------------------------------------------------------------------- > > * Next message: Richard Colbert: "How do I embed?" > * Previous message: jhopp@smtp.slip.net: "Re: Usage questions on Adobe's SVG viewer" > * In reply to: Arnold, Curt: "Usage questions on Adobe's SVG viewer" > * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > * Other mail archives: [this mailing list] [other W3C mailing lists] > * Mail actions: [ respond to this message ] [ mail a new topic ]
Received on Sunday, 16 April 2000 15:29:09 UTC