ASCIIsvg and SVGWeb

30 views
Skip to first unread message

Murray

unread,
Oct 16, 2010, 9:39:53 AM10/16/10
to ASCIIMath
I tried to get ASCIIsvg graphs to render using SVGWeb (http://
code.google.com/p/svgweb/ which uses Flash to render SVG in IE), but
had no joy.

Here is my attempt: http://www.intmath.com/Functions-and-graphs/helloworld.php
(The 2 SVG circles at the top are rendering fine, but the ASCIIsvg
graphs below are not).

I'm wondering if it is an issue whereby the SVG output from ASCIIsvg
is not delivered early enough for SVGWeb to render it, or whether
there is a more fundamental reason why it won't work, so I should give
up.

Regards.

mauno

unread,
Oct 17, 2010, 1:46:09 AM10/17/10
to ASCIIMath
I have not tried that but my first thought was that you might need to
use asciisvg script first to get svg code and then SVGWeb code to
change svg code to flash for IE... order of scripts may have
influence.

Mauno

Murray

unread,
Oct 18, 2010, 3:27:43 AM10/18/10
to ASCIIMath
Thanks Mauno. But there is the problem - you apparently need to have
the SVGWeb script as the very first script on the page, and ASCIIsvg
as the last script (or at least, after all the relevant ASCII text).

However, this version (http://www.intmath.com/Functions-and-graphs/
helloworld3.php) has the SVGWeb script right at the end after the
ASCIIsvg script, and while it still works for the 2 circles in IE
(they are rendered using Flash), it fails for the ASCII-based graph.

I suspect it needs an interim step (some kind of document.write) that
writes the SVG output to the HTML file (in a DIV?), so it can
subsequently be used by SVGWeb.

Regards

Murray
Reply all
Reply to author
Forward
0 new messages