#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    10
    Rep Power
    0

    Angry svg - scalable vector graphics viewing


    I have been experimenting with SVG. When I go to a site which has examples I can view them. However when I copy the code down from those sites to my server and try to view them it does not recognize it as svg. I just see the text. I am pretty sure the code is correct, because I have only cut and pasted. Any Ideas on why I can't view pages from my own site?

    example:

    <?xml version="1.0" standalone="yes"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
    "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
    <svg width="5cm" height="6cm">
    <desc>An SVG example</desc>
    <rect style="fill:blue;" x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
    <rect style="fill:green;" x="3.5cm" y="0.5cm" width="1cm" height="1.5cm"/>
    <ellipse style="fill:red;" cx="2.5cm" cy="3.5cm" rx="2cm" ry="1cm" />
    <text style="fill:black;" x="0.8cm" y="5.5cm">A simple SVG example.</text>
    </svg>
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    Please don't take offense to this question, but are you sure you have an SVG enabled browser?
    Michael
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    10
    Rep Power
    0

    Thumbs down svg enabled browser


    Yes, for several reasons.
    1. I have Internet Explorer 5.5
    2. The svg tutorials I have tried have displayed correctly.


    I have noticed something...

    When I try to test using the test svg page on adobe, three spheres appear, but 2 of them disappear after about a second. the top 1 remains there. I have tried uninstalling and reinstalling several times, but I get the same results.

    This is the test site: http://www.adobe.com/svg/viewer/install/svgtest.html
  6. #4
  7. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    Well, the reason I'm asking, is I wasn't able to look at any SVG examples on the W3C site until I downloaded the Adobe plugin (and, yes, I too am using IE 5.5). Regarding the tutorials displaying correctly, I was thinking it was possible that they were not svg code, but image files.

    However, I tried out your code and IE thinks it is malformed. If you remove the two XML tags, the doctype tag, and name the file with a .svg extension, you should be able to view it. If you still can't, get the plugin.
    Last edited by pieux; June 4th, 2001 at 11:14 AM.
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo