Connecting Tech Pros Worldwide Forums | Help | Site Map

Javascript,SVG and Opera

alainpoint@yahoo.fr
Guest
 
Posts: n/a
#1: Jul 23 '05
Hi,

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?

Many thanks

Alain


Berislav Lopac
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Javascript,SVG and Opera


alainpoint@yahoo.fr wrote:[color=blue]
> 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?[/color]

Wouldn't know about Opera, but http://www.adobe.com/svg/ has some pretty
nice SVG stuff.

Berislav


Martin Honnen
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Javascript,SVG and Opera




alainpoint@yahoo.fr wrote:

[color=blue]
> 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?[/color]

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/
Berislav Lopac
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Javascript,SVG and Opera


Berislav Lopac wrote:[color=blue]
> alainpoint@yahoo.fr wrote:[color=green]
>> 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?[/color]
>
> Wouldn't know about Opera, but http://www.adobe.com/svg/ has some
> pretty nice SVG stuff.[/color]

And this: http://my.opera.com/community/articl...ers/enablesvg/

Berislav


alainpoint@yahoo.fr
Guest
 
Posts: n/a
#5: Jul 23 '05

re: Javascript,SVG and Opera


I know of this site. Unfortunately, the site does not work with Opera !

Closed Thread