I'm guessing that if you inlined the SVG content (which is only now starting to be supported), this would work as written. Otherwise, you'll probably have to do as Steve suggests, and include the relevant script in the SVG object itself.

On 20/05/2010 11:13 PM, Steve Onnis wrote:
 From what I can see you need to embed the scripts into the svg

-----Original Message-----
From: Stodge [mailto:[email protected]]
Sent: Friday, 21 May 2010 12:24 AM
To: MooTools Users
Subject: [Moo] Re: Can Mootools drag an SVG element?

I thought mootools could get to an SVG dom as well. I must have misread
something.

On May 20, 10:14 am, "Steve Onnis"<[email protected]>  wrote:
Yeah but its not in the DOM so how are you meant to get to it?



-----Original Message-----
From: Stodge [mailto:[email protected]]
Sent: Friday, 21 May 2010 12:13 AM
To: MooTools Users
Subject: [Moo] Re: Can Mootools drag an SVG element?

MyPath is the ID of the blue, wavy line. You'll have to view the
source of the resulting SVG to see that. Sorry I should have explained
what that is.
On May 20, 10:09 am, "Steve Onnis"<[email protected]>  wrote:
Based on what you have entered there, where is $("MyPath") coming
from? The browser is saying it is undefined/null
-----Original Message-----
From: Stodge [mailto:[email protected]]
Sent: Thursday, 20 May 2010 11:47 PM
To: MooTools Users
Subject: [Moo] Re: Can Mootools drag an SVG element?
http://mootools.net/shell/bDC8S/
This might show what I'm trying to do.
I'm trying to drag the blue wavy line.
On May 20, 9:33 am, Stodge<[email protected]>  wrote:
Thanks. I'm trying - I'm just having trouble getting a usable SVG
object to display in mooshell.
On May 20, 8:27 am, Roman Land<[email protected]>  wrote:
A mockup on mooshell would be helpfull
On Thu, May 20, 2010 at 3:19 PM, Stodge<[email protected]>  wrote:
I'm prototyping some ideas and I need the ability to drag an
SVG element. Mootools seems to let me retrieve an SVG element
from the DOM, but calling Drag on it results in weird, unrelated
errors.
Does anyone know if this is possible? Thanks
--
---
"Make everything as simple as possible, but not simpler."
- Albert Einstein


--
Not sent from my Apple πPhone

Reply via email to