[RESOLVED] Is anyone successfully using SVG with MSIE?
Results 1 to 10 of 10

Thread: [RESOLVED] Is anyone successfully using SVG with MSIE?

  1. #1
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,708

    resolved [RESOLVED] Is anyone successfully using SVG with MSIE?

    PHP Code:
    function charts ($day=null) {
       echo 
    "<div id='maingraph'><img src='graph2wks.php?day=$day' alt='SVG Graphics Graphing Image' />"
    graph2wks.php has the following:

    PHP Code:
    header("content-type:image/svg");
    $my_graph->renderDirect920300'line_chart.svg' ); 
    Looks great in FF, as it supports SVG. I've seen claims of support for SVG in late-model MSIE browsers, but I can't seem to get it working. Do I need another strategy?
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  2. #2
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,708
    Resolving my own thread here ... all we care about, I *think*, is IE v9 or greater. OBJECT tags work instead of IMG tags, and you need to explicitly set width/height attributes on the OBJECT.

    Fixed!
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  3. #3
    Senior Member
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    753
    There are plugins for older IE versions that allow it to display SVG, but as they are handled via a plugin, it's not a simple thing to manipulate them locally in the DOM.
    Ashley Sheridan
    www.ashleysheridan.co.uk

  4. #4
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,420
    ... and if you're expecting your users to install something, you might as well just make it at least a halfway-decent browser, not a plugin for a crappy one.

  5. #5
    Senior Member
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    753
    Quote Originally Posted by bradgrafelman View Post
    ... and if you're expecting your users to install something, you might as well just make it at least a halfway-decent browser, not a plugin for a crappy one.
    That's true, but sometimes it's easier to convince management/IT dept/et al to install a plugin for an "approved" browser than a different browser. I'd not recommend using IE to anyone, but when needs must... :-/
    Ashley Sheridan
    www.ashleysheridan.co.uk

  6. #6
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,708
    This is an Intranet solution for a very limited audience, some of which can't be expected to do *anything* browserish without a little help at times. We'll be OK with it. AFAIK, no DOM manipulation required ... yet
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  7. #7
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,875
    For even poorer choices of browser, would an acceptable compromise be to rasterise the SVG and serve it as, say, a PNG? I see PHPClasses has an svg2png script, if you're willing to install inkscape; a CLI converter would probably be more appropriate.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  8. #8
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,708
    I'd read about using Inkscape, or, alternatively, convert (from Imagemagick ... more likely available on BSD) or one other similar program.

    I'll have to wait & see though; I don't think anyone using < IE9 will be on this page. And there's a rumor that all of our XP systems in other "departments" will be upgraded before *too* much longer (is IS about time, right?)
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  9. #9
    Senior Member
    Join Date
    Jul 2007
    Posts
    3,654
    Nah, if I had any kind of influence I'd tell every windows based IT-department to upgrade to windows XP (spefically to before the windows update which silently removed EMS support). Moreover, being able to choose between both Firefox and Chrome, they wouldn't even have to suffer from IE8. Thus, such a platform would certainly represent the unbiased peak of windows evolution!


    Quote Originally Posted by dalecosp View Post
    *too* much longer
    is that the same as "soon (tm)"?

  10. #10
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,708
    Quote Originally Posted by johanafm View Post
    is that the same as "soon (tm)"?
    For most values of "soon(tm)", yes. Or, in FreeBSD, "Real Soon Now(tm)".

    Incidentally, the "XP systems in other departments will be upgraded" means ... new hardware running whatever is installed on it. So I'm sure they'll be on the anti-pinnacle of Windows 7 or even Windows 8. (Oh, my ... RE, RO from *Microsoft*? The world WILL end soon).
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •