Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
New(?) idea for fast dragdrop library   Message List  
Reply | Forward Message #2320 of 52127 |
Hi,

I have been working on new ideas for a dragdrop library. It started
based on the Yahoo! ui dragdrop library but has changed almost
completely. The main focus of my research is to create a much faster
dragdrop library with greater levels of abstraction. I don't have to
cache target regions at the start of each drag, I don't have to loop
through potential targets with every mouse move. Both of these are
perfomance killers when there are many targets.

I've blogged about the main idea and posted some undocumented
development code with a working example. More work needs to be done on
my code but it looks like my idea works well.

http://peter.michaux.ca/articles/2006/06/16/donut-dragdrop

I'm hopeful a few ideas will catch the eye of some Yahoo! developers
and find their way into the Yahoo! dragdrop library.

Peter



Fri Jun 16, 2006 12:46 am

petermichaux
Offline Offline
Send Email Send Email

Forward
Message #2320 of 52127 |
Expand Messages Author Sort by Date

Hi, I have been working on new ideas for a dragdrop library. It started based on the Yahoo! ui dragdrop library but has changed almost completely. The main...
Peter Michaux
petermichaux
Offline Send Email
Jun 16, 2006
12:46 am

That example looks great, I'll be viewing your code, hopefully I'll understand it. _____ From: ydn-javascript@yahoogroups.com...
Alex Smotritsky
alex_smotritsky
Offline Send Email
Jun 16, 2006
2:58 am

... Thanks Alex. I hope others like it too. I think there is a lot of promise for many applications. The main idea is in the blog article. Otherwise make sure...
Peter Michaux
petermichaux
Offline Send Email
Jun 16, 2006
3:04 am

I noticed in your blog that you say the code is copyrighted. Are you going to make it OS as Y! has done?...
bigtreestechman
Offline Send Email
Jun 16, 2006
1:00 pm

... Right now it is just research code and I thought it would be better not to have it floating around the web like it is. I don't know what will happen with...
Peter Michaux
petermichaux
Offline Send Email
Jun 16, 2006
1:49 pm

Hi, For any of those who were interested in my dragdrop research, I'm happy to say the donut concept is looking very flexible so far and very lightweight. The...
Peter Michaux
petermichaux
Offline Send Email
Jun 24, 2006
8:13 am

Are you making the code available open source? joe...
bigtreestechman
Offline Send Email
Jun 24, 2006
1:07 pm

... I take it that means you are interested and would like to use this code:) I would definitely like people to be able to use the code. It still needs some...
Peter Michaux
petermichaux
Offline Send Email
Jun 24, 2006
7:57 pm

... I have been looking with some interest at what you have achieved, and can see the advantages. However, I'm still trying to think of a way to generate...
Tim Hosking
tim@...
Send Email
Jun 24, 2006
8:21 pm

... Hi Tim, I've thought about the issues you've mentioned. I even have "dynamic proxy" written on a post it note next to me. Dynamic donut has a much nicer...
Peter Michaux
petermichaux
Offline Send Email
Jun 24, 2006
8:51 pm

... Hi, For those interested and following along. I've worked on the idea of a dynamic donut that looks like what is being dragged. I've updated my examples....
Peter Michaux
petermichaux
Offline Send Email
Jun 27, 2006
6:14 am

... Hi Peter. It is certainly coming along nicely, and I have to say that even on my 550Mz TiBook running FF, the 6 pixel hole seems to be easily big enough,...
Tim Hosking
tim@...
Send Email
Jun 27, 2006
12:20 pm

Hi Tim, ... I'm Canadian and have been feeling a little guilty about spelling it donut. ... I've thought about these things and some other ideas also. There...
Peter Michaux
petermichaux
Offline Send Email
Jun 27, 2006
5:26 pm

... As well you should! ... Not just Handlers, but additional methods and variables to handle drag and drop. With a few hundred items. it soon mounts up. ... ...
Tim Hosking
tim@...
Send Email
Jun 27, 2006
7:43 pm

... Have you tested that this is actually noticable or a problem? I'm interested if it impacts user experience by slowing things down. I think that JavaScript...
Peter Michaux
petermichaux
Offline Send Email
Jun 27, 2006
8:49 pm

You guys have some great ideas and discussion here, and for what it's worth I'm also a Canadian, "it's a jelly" (doughnut), etc. ;) From my recollection of...
Scott Schiller
scott.schiller
Offline Send Email
Jun 28, 2006
3:33 pm

Hi Scott, ... In a way, this is exactly what I have done. In your above example "someDiv" would be a JavaScript object representing the HTML div element. I...
Peter Michaux
petermichaux
Offline Send Email
Jun 28, 2006
4:15 pm

... Where it becomes noticeable is when you actually add several hundred items to the DOM. The additional time required to add the necessary properties to each...
Tim Hosking
tim@...
Send Email
Jul 4, 2006
9:40 pm

Hi Tim, To keep things short I snipped out all the things you wrote that I think sound great. I snipped out most. ... If the code is part of the object's...
Peter Michaux
petermichaux
Offline Send Email
Jul 7, 2006
6:48 am

... OK. The code itself exists only once, but every method in the prototype adds a reference intto the object. I know it's only small, but it's still there and...
Tim Hosking
tim@...
Send Email
Jul 7, 2006
6:05 pm

Hi Tim, ... You carefully avoided this? In my implementation a draggable item can be the composition of many rectanges. All of your draggable items will be...
Peter Michaux
petermichaux
Offline Send Email
Jul 7, 2006
6:36 pm

... My draggable item does indeed have and enclosing rectangle, but it is not necessarily a draghandle in itself, which is why I have the distinct...
Tim Hosking
tim@...
Send Email
Jul 7, 2006
9:07 pm

... But you won't ever be able to efficiently select the element that appears to be in the middle of the circle but is under the invisible parent element for...
Peter Michaux
petermichaux
Offline Send Email
Jul 7, 2006
10:24 pm

Is there any code out there that achieves the basic shopping cart functionality as demoed by Scriptaculous but using YUI, or any other javascript...
Alex Smotritsky
alex_smotritsky
Offline Send Email
Jul 7, 2006
6:43 pm

... I have confimation that this is not true. JavaScript: The Definitive Guide 4th ed p 120 explains that the object only contains a single reference to the...
Peter Michaux
petermichaux
Offline Send Email
Jul 7, 2006
9:02 pm

Peter. Not sure if I am taking too much list bandwidth here, but I think I have not explained things clearly to date. ... Yes. After some investigation, I have...
Tim Hosking
tim@...
Send Email
Jul 7, 2006
10:51 pm

... This is all good stuff. ... Please have a look at how I listen for mouse over events for my Target class. In short, I don't listen for mouseover. Instead,...
Peter Michaux
petermichaux
Offline Send Email
Jul 7, 2006
11:40 pm

... My bad. I meant mousemove. I don't use mouseover either. ... Hmm. I think I now what you mean. I simply have DropTarget listening for StartDrag/StopDrag...
Tim Hosking
tim@...
Send Email
Jul 8, 2006
12:26 am

... This sounds very complidated. _Please_ read my target.js code. It isn't so complicated. I used the concept of a first responder. Targets are listening for...
Peter Michaux
petermichaux
Offline Send Email
Jul 8, 2006
1:02 am
First  | < Prev  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help