You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "Charles H. Woloszynski" <ch...@clearmetrix.com> on 2002/08/12 19:09:54 UTC

SVG and tags

I have an SVG question, but it is not directly a Batik question.  I am 
hoping someone who is familiar with SVG might be on this list and can 
help.  

I have an SVG that takes a long time to generate (we use some JSPs to 
generate a dynamic traceroute) and we want to display a 'tracing' 
message display while the process is going on.  In GIF land, we put up 
one image ('tracing') and then  use the <body onLoad=""> to run a script 
to load (altering the element.src attribute) the longer-loading images. 
 I tried to do the equivalent with the <EMBED> tag, giving it an ID, and 
an initial SVG that says 'tracing'.  That part works.  WhenI look up the 
element (document.getElementById('SVG')) and then alter its src 
attribute, it does not reload.

Does anyone know how to get a SVG url to reload like this?

Thanks in advance,

Charlie


-- 


Charles H. Woloszynski

ClearMetrix, Inc.
115 Research Drive
Bethlehem, PA 18015

tel: 610-419-2210 x400
fax: 240-371-3256
web: www.clearmetrix.com





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


SVG and tags

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "CHW" == Charles H Woloszynski <ch...@clearmetrix.com> writes:

CHW> I have an SVG question, but it is not directly a Batik question.
CHW> I am hoping someone who is familiar with SVG might be on this
CHW> list and can help.

CHW> I have an SVG that takes a long time to generate (we use some
CHW> JSPs to generate a dynamic traceroute) and we want to display a
CHW> 'tracing' message display while the process is going on.  In GIF
CHW> land, we put up one image ('tracing') and then use the <body
CHW> onLoad=""> to run a script to load (altering the element.src
CHW> attribute) the longer-loading images.  I tried to do the
CHW> equivalent with the <EMBED> tag, giving it an ID, and an initial
CHW> SVG that says 'tracing'.  That part works.  WhenI look up the
CHW> element (document.getElementById('SVG')) and then alter its src
CHW> attribute, it does not reload.

CHW> Does anyone know how to get a SVG url to reload like this?

     You might try having your SVG reference the 'tracing' message
through an 'image' element (<image xlink:href="tracing.svg"/>) Then
when the tracing is finished change the xlink:href attribute of the
image element to point to the completed document.  

     Be aware that in the ASV the referenced image must be static, if
this is not acceptable there are further hacks like using 'getURL' and
'parseXML' to actually add the computed document to the current one
(but this is a pretty ugly hack).

     Hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org