Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SVG - Problem displaying in IE

Status
Not open for further replies.

reginaldrush

Technical User
Feb 5, 2004
1
US
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=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?>',&quot;\n&quot;;
print '<!DOCTYPE svg PUBLIC &quot;-//W3C//DTD SVG 20001102//EN&quot; &quot; &quot;\n&quot;;
print '<svg width=&quot;400&quot; height=&quot;300&quot; viewBox=&quot;0,0,800,600&quot;>',&quot;\n&quot;;
print ' <text style=&quot;font-size:24pt;font-face:Helvetica&quot; x=&quot;100&quot; y=&quot;150&quot;>Hello World</text>',&quot;\n&quot;;
print '</svg>',&quot;\n&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top