set AttributeName call from php file does not work [Archive] - XML Elves

set AttributeName call from php file does not work

Johan
05-09-2005, 12: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

Anonymous
05-09-2005, 01:17 PM
Use
<svg:set attributeName='fill' from='none' to='navy' begin='bb.mouseover' end='bb.mouseout'/>

If bb exist in your svg, this run ...

<svg:set attributeName='fill' from='none' to='navy' begin='1' dur='5'/> run

Michel

Anonymous
05-10-2005, 12:11 AM
Use
<svg:set attributeName='fill' from='none' to='navy' begin='bb.mouseover' end='bb.mouseout'/>

If bb exist in your svg, this run ...

<svg:set attributeName='fill' from='none' to='navy' begin='1' dur='5'/> run

Michel

Althoug things turn black at the beginning (fill becomes black) the second option worked a little, but I cant get the mouseover / mousoutpart working.

I have implemented it just like this:

<svg:set attributeName='fill' from='none' to='navy' begin='mouseover' end='mouseout'/>

Johan

Anonymous
05-10-2005, 01:10 AM
OK ... it seems that events have no effect in your svg elements include in HTML.
( I try with ASV3 and 6 beta ... )

Why not return by PHP svg file, so you have no problem :

<?php header("Content-type: image/svg+xml");
print("<?xml version='1.0' encoding='UTF-8'?>\n");
print("<svg width='200' height='200' viewBox='0 0 200 200'>\n");
.......
print("</svg>");
?>

Michel

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum