al********@yahoo.fr wrote:
I have a simple question. How do you get Opera to work with SVG and
Javascript? Can someone point me to a site where the two work together?
Opera 8 has native support for SVG Tiny I think and SVG Tiny does not
include scripting. So script inside SVG documents is not supported with
Opera 8 and its native SVG support.
If you want to get script in a HTML document manipulate an embedded SVG
graphics then that should work in theory with mixed namespace documents
using XHTML and SVG elements and script in the XHTML document but so far
it is not clear whether Opera wants to support that, when Opera 8 beta
was out I filed a bug with the test case
<http://home.arcor.de/martin.honnen/operaBugs/op8/fillChangeEmbeddedSVG.xhtml>
which now works with the Opera 8.00 release but more complex stuff like
<http://home.arcor.de/martin.honnen/operaBugs/op8/dynamicSVGScript1.xhtml>
does not work correctly, there the added circle elements do not show up
unless you force a repaint with zooming into the graphics.
What you can do is use the Adobe SVG plugin with Opera, then you can
make use of the internal script engine the plugin comes with to have
scripting in SVG documents. But you can't communicate between script in
a HTML document and script in a SVG document.
--
Martin Honnen
http://JavaScript.FAQTs.com/