Export to GitHub

svgweb - issue #627

Jquery to maniplate svgweb node


Posted on Sep 9, 2011 by Happy Bear

What steps will reproduce the problem? Hi, i'm having the following code and i'd like to be able to address the myCircle node with jquery. I'm sorry if i'm dumb but i can't get how to make it work:

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system, browser, and version of Flash?

Please provide any additional information below. Reduced test cases are always appreciated!

The file is an html:

<head>

<script src="../../src/svg.js" data-path="../../src" data-htc-filename="svg-htc.php" data-debug="true"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script&gt;

<script type="text/javascript"> window.onsvgload = function() {

  }

</head>

<body> <script type="image/svg+xml"> <svg width="200" height="200" style="background-color: #000000; display: block; margin-bottom: 5px;" id="embeddedSVG">

        &lt;circle 
                id=&quot;myCircle&quot;
                cx=&quot;100&quot; cy=&quot;75&quot; r=&quot;50&quot;
                fill=&quot;blue&quot;
                stroke=&quot;firebrick&quot;
                stroke-width=&quot;3&quot; /&gt;

    &lt;/svg&gt;
  &lt;/script&gt;

</body>


Thank you.

Status: New

Labels:
Type-Defect Priority-Low