[Seaside] svg/Javascript with Seaside

Lukas Renggli renggli at gmail.com
Mon May 28 20:49:46 UTC 2007


> I see that in the Seaside.WATagBrush class there are some methods
> like "onMouseOver", "onMouseDown",.. could these be any useful to me?

These are the standard DOM events. I assume that they are supported by
SVG as well. So for example you can write something like this:

    html div onClick: 'alert("got clicked")'; with: 'click me'

For the drag & drop part this doesn't sound like a Seaside issue.
Personally I do not have enough experience with SVG to tell you where
to find a solution. Probably there are JavaScript libraries around
that can help you with that.

If you have a look at the Scriptaculous package (there is a demo at
http://scriptaculous.seasidehosting.st) you will see that this
framework and its JavaScript library provides support for drag & drop
in Seaside on the level of the XHTML DOM. I would be astonished if it
worked on SVG as well, but you might get some ideas from the code.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list