reginaldrush
Technical User
I continue to have problems displaying dynamically generated SVG in internet explorer without modifying the URL to trick IE into displaying the graphic.
The SVG displays fine in netscape. However, to get the svg to display in IE I have to append some equivalent of
?a=.svg to the url to get the svg viewer to initiate. I have not had problems accessing other sites that dynamically generate svg, so it’s possible that it’s a webserver problem. I appreciate any insight into this problem.
Important details: I am using adobe’s svg viewer v. 2.0; webserver runs IIS5;
Simple perl script:
#!/usr/bin/perl -w
use strict;
print "Content-type: image/svg+xml\n\n";
print '<?xml version="1.0" encoding="iso-8859-1"?>',"\n";
print '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" " "\n";
print '<svg width="400" height="300" viewBox="0,0,800,600">',"\n";
print ' <text style="font-size:24pt;font-face:Helvetica" x="100" y="150">Hello World</text>',"\n";
print '</svg>',"\n";
The SVG displays fine in netscape. However, to get the svg to display in IE I have to append some equivalent of
?a=.svg to the url to get the svg viewer to initiate. I have not had problems accessing other sites that dynamically generate svg, so it’s possible that it’s a webserver problem. I appreciate any insight into this problem.
Important details: I am using adobe’s svg viewer v. 2.0; webserver runs IIS5;
Simple perl script:
#!/usr/bin/perl -w
use strict;
print "Content-type: image/svg+xml\n\n";
print '<?xml version="1.0" encoding="iso-8859-1"?>',"\n";
print '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" " "\n";
print '<svg width="400" height="300" viewBox="0,0,800,600">',"\n";
print ' <text style="font-size:24pt;font-face:Helvetica" x="100" y="150">Hello World</text>',"\n";
print '</svg>',"\n";