W3C home > Mailing lists > Public > www-svg@w3.org > April 2000

Usage questions on Adobe's SVG viewer

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Mon, 3 Apr 2000 17:16:08 -0600
Message-ID: <00E567D938B9D311ACEC00A0C9B468730C76B0@THOR>
To: "'www-svg@w3.org'" <www-svg@w3.org>
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:

function Curve1_onload()
	//   of course I want to do something much more complicated
	curve.setAttribute("d","M 0 0 L 0.01 390");
<g style="stroke-width:5px; fill:none; stroke:blue;">
<path id="curve" d="M 0 0 L 0 0" onload="Curve1_onload()"/>

There are of course numerous things that I could be doing wrong.

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.

			Plot type: <select name="fatigueType" id="fatigueType" onchange="fatigueType_onChange()"><option value="1" selected>Cyclic Stress-Strain</option><option
<input name="checkbox1" type="checkbox" value="ON"><a href="details.html">&sigma;<sub>f</sub>'=676</a>
<script type="text/javascript" language="javascript">
					function fatigueType_onChange()
						document.all("FatiguePlot").src = "ntetra.svg";						
</td><td><embed src="cyclic.svg" ID="FatiguePlot" width="100%" height="400" type="image/svg"></embed></td>

I'd appreciate any suggestions.  Thanks.
Received on Monday, 3 April 2000 19:18:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:29:12 UTC