Johan
05-09-2005, 01:31 PM
Hi,
I am using PHP to retreive data from a mysql-database.
From the php file I am using echo to send the data to my browser.
Now I have found a way to use this dat in an svg document.
using <svg:svg> was the only way I could get my data to the svg output.
Everything works fine until I am introducing the red marked text in my example.
When leaving this part out it works fine.
example:
<?
echo
("
<html xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/1999/xhtml'>
<object id='AdobeSVG' classid='clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2'>
</object>
<?import namespace='svg' implementation='#AdobeSVG'?>
<head>
<title>
Testdocument
</title>
</head>
<body>
<svg:svg version='1.0' encoding='UTF-8' width='200px' height='200px'
viewBox='0 0 200 200' xmlns:svg='http://www.w3.org/2000/svg'>
<svg:circle cx='30' cy='30' r='20' style='stroke-width: 2; stroke: black; fill: none;'>
<set attributeName='fill' from='none' to='navy' begin='bb.mouseover' end='bb.mouseout'/>
</svg:circle>
</svg:svg>
</body>
</html>
");
?>
Is there any other way to get the set AttributeName working thru an echo from my php file?
Thanks in advance
Johan
I am using PHP to retreive data from a mysql-database.
From the php file I am using echo to send the data to my browser.
Now I have found a way to use this dat in an svg document.
using <svg:svg> was the only way I could get my data to the svg output.
Everything works fine until I am introducing the red marked text in my example.
When leaving this part out it works fine.
example:
<?
echo
("
<html xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/1999/xhtml'>
<object id='AdobeSVG' classid='clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2'>
</object>
<?import namespace='svg' implementation='#AdobeSVG'?>
<head>
<title>
Testdocument
</title>
</head>
<body>
<svg:svg version='1.0' encoding='UTF-8' width='200px' height='200px'
viewBox='0 0 200 200' xmlns:svg='http://www.w3.org/2000/svg'>
<svg:circle cx='30' cy='30' r='20' style='stroke-width: 2; stroke: black; fill: none;'>
<set attributeName='fill' from='none' to='navy' begin='bb.mouseover' end='bb.mouseout'/>
</svg:circle>
</svg:svg>
</body>
</html>
");
?>
Is there any other way to get the set AttributeName working thru an echo from my php file?
Thanks in advance
Johan