Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7075245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:09:15+00:00 2026-05-28T06:09:15+00:00

This is the svg I try to embed: <script type=image/svg+xml> <svg width=200 height=200 style=background-color:

  • 0

This is the svg I try to embed:

  <script type="image/svg+xml">
    <svg width="200" height="200"
         style="background-color: #D2B48C; display: block; margin-bottom: 5px;"
         id="embeddedSVG">
      <g id="myGroup" 
         fill="blue" 
         style="font-size: 18px; text-anchor: middle; font-family: serif;">
        <circle id="myCircle"
                cx="100" cy="75" r="50"
                stroke="firebrick"
                stroke-width="3" />
        <text x="100" y="155">Hello World</text>
        <text x="100" y="175">From Embedded SVG!</text>
      </g>
    </svg>
  </script>
  <noscript>
    <h1>Optional fallback content goes here!</h1>
  </noscript>

This works fine in ie6-8, SVGweb does:

<OBJECT style="BACKGROUND-COLOR: #d2b48c; DISPLAY: block; MARGIN-BOTTOM: 5px; OVERFLOW: hidden" id=embeddedSVG_flash class=embedssvg name=embeddedSVG_flash codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=200 height=200><PARAM NAME="_cx" VALUE="5291"><PARAM NAME="_cy" VALUE="5291"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="js/svg.swf"><PARAM NAME="Src" VALUE="js/svg.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="D2B48C"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
      <embed src="js/svg.swf" quality="high" bgcolor="#d2b48c" 
width="200" height="200" id="embeddedSVG_flash" name="embeddedSVG_flash" swLiveConnect="true" allowScriptAccess="always" type="application/x-shockwave-flash" FlashVars="uniqueId=embeddedSVG&sourceType=string&clipMode=both&debug=true&svgId=embeddedSVG" pluginspage="http://www.macromedia.com/go/getflashplayer" style="background-color: #d2b48c; display: block; margin-bottom: 5px;overflow: hidden;"
 class="embedssvg"  /></OBJECT><NOSCRIPT></NOSCRIPT>

but when I add jQuery:

<script src="js/jquery.js" type="text/javascript"></script>

The SVG does not render in ie6-8 (yet it does in chrome, ff, …):

<script type="image/svg+xml">
<svg width="200" height="200" style="background-color: #D2B48C; display: block; margin-bottom: 5px;"              id="embeddedSVG">           
<g id="myGroup" fill="blue" style="font-size: 18px; text-anchor: middle; font-family: serif;">                <circle id="myCircle"  cx="100" cy="75" r="50" stroke="firebrick" stroke-width="3" />           
<text x="100" y="155">Hello World</text>             
<text x="100" y="175">From Embedded SVG!</text>           
</g>         
</svg>
</script>

I would expect SVGweb to work the same way, independent of whether jQuery is loaded or not.
How do I embed the SVG with SVGweb, so that it gets shown in ie6-8, while jQuery is loaded?

EDIT:

I may have found a solution. If I bring in jQuery before SVGweb it will work. Yet in the SVGweb manual it says:

First, you must bring in the svg.js file into your HTML page as the
first script on your page, before all others

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:09:16+00:00Added an answer on May 28, 2026 at 6:09 am

    Including jQuery before SVGweb resolves the problem (as pointed out in my edit).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to Embed SVG into XUL. I tried to use the this tutorial
When i try to render this svg sample, the line is bluring automatically and
like this: svg.configure({viewBox: '0 0 100 100'}, true); svg.configure({transform:'translate(100,200)'},true); it works ok! But how
I would like to read in a SVG file, determine its width and height
Is there an application to convert a svg drawing to Java's Path2d? Is this
I'm trying to append a string of svg elements to the dom. This is
This is not really a programming question, but I try here none the less.
For a little project about XML I try to use HTML5 as it has
I am trying to load an svg image into canvas for pixel manipulation I
I need to run inkscape in PHP so I can convert an svg image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.