chunhaicao / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Jquery to maniplate svgweb node #627

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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>

<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">

            <circle 
                    id="myCircle"
                    cx="100" cy="75" r="50"
                    fill="blue"
                    stroke="firebrick"
                    stroke-width="3" />

        </svg>
      </script>

</body>

------------------------------

Thank you.

Original issue reported on code.google.com by FFabrica...@gmail.com on 9 Sep 2011 at 8:54