Thanks Doug,

I �ll try it again.
But I think the problem is the callback codeloading .
What do you think?

Burkhard
----- Original Message -----
From: "Doug Schepers" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, February 06, 2005 8:26 PM
Subject: RE: [svg-developers] Drag and Drop for groups


>
>
> Hi, Burkhard-
>
> I don't understand your questions. Perhaps you misunderstood the intent of
> my sample. It's a very basic example of how to do drag-and-drop with
groups.
> I made a point of commenting the code, so that anyone who wants to figure
> out how to adapt it to their own purposes can very easily do so.
Obviously,
> you will have to tear it apart and fit it into your own codebase.
>
> To speak on your specific concerns:
> 1) Yes, it will drag any group (although this example might not work as-is
> for grouped 'use' elements)... Keep in mind that it assumes that the
element
> grabbed is a top-level child of the group to be moved; if your SVG
hierachy
> markup is more complex than that, there are ways to find the "proper"
group,
> including testing against id and such;
> 2) Well, SVGDocument is just what I call it... Nothing magic about that,
> just change the variable name. You could do something like this, too:
>
> function Grab(evt)
> {
>    //get the document element, if it doesn't exist
>    if ( !SVGDocument )
>    {
>       Init(evt);
>    }
>
>    // find out which element we moused down on
>    var targetElement = evt.target;
>
>    ...
> };
>
> Again, nothing magic about the onload event... You just need to initialize
> the variables once.
>
> Regards-
> Doug
>
> doug . schepers  @ vectoreal.com
> www.vectoreal.com ...for scalable solutions.
>
>
> Burkhard Stollenwerk wrote:
> |
> | Hello Doug,
> |
> | it looks pretty fine.
> | But I have two problems.
> | 1.)Not any group should be moved.
> | 2.)I take the svg document by using PHP callback function.
> | then SVG Document is undefined.
> | The Onload function wouldn�t called.
> | Any solution about this?
> |
> | Burkhard Stollenwerk
> |
> |
> | ----- Original Message -----
> | From: "Doug Schepers" <[EMAIL PROTECTED]>
> | To: <[email protected]>
> | Sent: Friday, February 04, 2005 1:56 PM
> | Subject: RE: [svg-developers] Drag and Drop for groups
> |
> |
> | >
> | >
> | > Thanks for the kind words, Philippe.
> | >
> | > As you said, it's a pretty trivial problem, unless I'm
> | > misunderstanding something. I made a slight alteration to
> | my sample,
> | > to show how to move
> | > groups:
> | >
> | > http://svg-whiz.com/svg/DragAndDropGroup.svg
> | >
> | > Regards-
> | > Doug
> | >
> | > doug . schepers  @ vectoreal.com
> | > www.vectoreal.com ...for scalable solutions.
> | >
>
>
>
> -----
> To unsubscribe send a message to:
[EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
> ----
> Yahoo! Groups Links
>
>
>
>
>
>
>



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to