Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > SVG in xhtml do...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 394 of 439
Post > Topic >>

SVG in xhtml document - how?

by "Jim Michaels" <jmichae3@[EMAIL PROTECTED] > Feb 1, 2006 at 12:02 AM

I looked in the manuals for SVG stuff and they all say just to put in the 
tags and use them.
<svg width="450" height="500" viewBox="0 0 450 500">
    <script type="text/ecmascript">

    function showDialog(msg) {
        alert(msg);
    }
    </script>
    <g>
        <circle cx="137.5" cy="110" r="20" style="fill:crimson"
          onmousedown="showDialog('onmousedown')"/>
        <circle cx="312.5" cy="110" r="20" style="fill:crimson"
          onmouseup="showDialog('onmouseup')"/>
    </g>
    <g transform="translate(0 80)">
        <circle cx="137.5" cy="110" r="20" style="fill:crimson"
          onmouseover="showDialog('onmouseover')"/>
        <circle cx="312.5" cy="110" r="20" style="fill:crimson"
          onmouseout="showDialog('onmouseout')"/>
    </g>
    <g transform="translate(0 160)">
        <circle cx="137.5" cy="110" r="20" style="fill:crimson"
          onmousemove="showDialog('onmousemove')"/>
        <circle cx="312.5" cy="110" r="20" style="fill:crimson"
          onclick="showDialog('onclick')"/>
    </g>
</svg>
well, it doesn't work.  it's like inserting XML into an HTML document. 
nothing in the browser to interpret the SVG tags. anybody got any ideas?so
I 
looked at Batik http://xml.apache.org/batik/
and nothing in the docs say
how 
to include their jar files on a web page.their demo points to a .jnlp file

(xml javastart), which starts batik and gives a socket error on svg files
on 
my web site because my host locked down their server too much - won't
allow 
socket connections on port 80.




 4 Posts in Topic:
SVG in xhtml document - how?
"Jim Michaels"   2006-02-01 00:02:38 
Re: SVG in xhtml document - how?
Gazza <news@[EMAIL PRO  2006-02-01 10:38:04 
Re: SVG in xhtml document - how?
"Jim Michaels"   2006-02-01 21:05:16 
Re: SVG in xhtml document - how?
Gazza <news@[EMAIL PRO  2006-02-03 17:08:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 14:00:25 CDT 2008.