in reply to Sending SVG to Client

The problem is that the svg is not being diplayed by the client-side browser (IE6) - and when I try it in Netscape, it starts downloading as a file. If I click veiw>>source in IE, the svg source is displayed perfectly

Sounds like a either a MIME type problem (in the code above) or a DOCTYPE problem (in g3.svg). The MIME type (Content-type: header) looks O.K.

I'm not familiar with SVG, but were I in your position, I'd try using SVG.pm to generate some sample SVG, and would examine the Content-type: header and the <!DOCTYPE> tag that that it emits.

Also, verify that you have a correct <?xml ...> tag.

Replies are listed 'Best First'.
Re: Re: Sending SVG to Client
by Baz (Friar) on Aug 25, 2002 at 01:01 UTC
    I tried this -
    http://baz.perlmonk.org/svg.cgi?ielikes=.svg
    and it works - should I settle with this, or is there something else I could do...as a matter of interest. I'm also not very happy with the way it behaves when its downloading (im on a 56K) - the download progress status bar disappears. On Netscape, a little window opens up and the file is downloaded, it then gives the Lauach option but launches it in IE - maybe thats normal, but i downloaded the plugins for both browsers.
      The current Adobe SVG Viewer does not work in Netscape. The plugin architecture changed and the Adobe team has not released a new build, yet. A previous build of Mozilla has SVG support built in.

      I suggest checking your mime types to ensure that image/svg+xml (I think) is in there.