Re: [Rails-spinoffs] Draggable slow if page contains more than 4 Droppables [testcase]

2006-07-24 Thread Sam Rowe
On Sun, Jul 23, 2006 at 10:58:54PM -0700, Peter Michaux wrote: # On 7/23/06, Em Te <[EMAIL PROTECTED]> wrote: # >Good day, # >I am using Scriptaculous' drag and drop library in my project and I find # >that if I have more than 4 Droppables on a page that contains many nested # >elements, the motio

Re: [Rails-spinoffs] Yahoo!-likeEventobjectemulation/abstractioninPrototype?

2006-06-16 Thread Sam Rowe
On Fri, Jun 16, 2006 at 09:00:36AM -0600, Gregory Hill wrote: # > Seems to work great! Can I use that code in my project? My eventual # > hope is to release the project under the GPLv2. # # Sure, go nuts. You're welcome to put my name in there if you want, but # don't put my email address. If yo

Re: [Rails-spinoffs] Yahoo!-like Eventobjectemulation/abstractioninPrototype?

2006-06-16 Thread Sam Rowe
On Thu, Jun 15, 2006 at 02:26:37PM -0600, Gregory Hill wrote: # This is obviously rough draft and not thoroughly tested, but it seems to # work. If you'd like, give it a try (load it after you load # prototype.js): # # # Function.prototype.bindAsEventListener = function(object) { # var __metho

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstractioninPrototype?

2006-06-15 Thread Sam Rowe
On Thu, Jun 15, 2006 at 02:26:06PM -0500, Ryan Gahl wrote: #Yea, like I said, it might not work how I originally wrote it, because #you're not using the traditional prototype-ish class or object syntax... #here... re-write everything like this... #taco = #{ #init: function()

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstractioninPrototype?

2006-06-15 Thread Sam Rowe
On Thu, Jun 15, 2006 at 01:54:41PM -0500, Ryan Gahl wrote: #actually that may not work either, you're using a funky nested function #syntax... # #One way or the other, you just have to get the proper object bound the the #lexical scope of the jojo function... # #Or something l

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstractioninPrototype?

2006-06-15 Thread Sam Rowe
On Thu, Jun 15, 2006 at 01:50:41PM -0500, Ryan Gahl wrote: #jojo is a member method of taco (in your previous posts I think both me #and Greg assumed your function was at the global scope level)... # #change your Event.observe line to the following... # #Event.observe(x,'click', t

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstractioninPrototype?

2006-06-15 Thread Sam Rowe
On Thu, Jun 15, 2006 at 12:24:11PM -0600, Gregory Hill wrote: # If that doesn't work, then you've done something wrong somewhere. # 'Cause it works for IE for me and everyone else. # # The only advantage I see with the YUI toolkit is that it'll defer # attaching events to elements that do not yet

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstractionin Prototype?

2006-06-15 Thread Sam Rowe
# > From: [EMAIL PROTECTED] # [mailto:rails-spinoffs- # > [EMAIL PROTECTED] On Behalf Of Sam Rowe # > Sent: Thursday, June 15, 2006 11:24 AM # > To: rails-spinoffs@lists.rubyonrails.org # > Subject: Re: [Rails-spinoffs] Yahoo!-like Event object # > emulation/abstractionin Prototype? # >

Re: [Rails-spinoffs] Yahoo!-like Event object emulation/abstraction in Prototype?

2006-06-15 Thread Sam Rowe
On Thu, Jun 15, 2006 at 08:44:13AM -0500, Ryan Gahl wrote: #Um... Event.observe() -- it's been there all along and does that #abstraction. Weird, I wonder why none of my event handlers work in IE. I'll look closer. Thanks for the info. Just cause I'm dense... I'm talking about this: Even

[Rails-spinoffs] Yahoo!-like Event object emulation/abstraction in Prototype?

2006-06-15 Thread Sam Rowe
Hi, I was reading about the Yahoo! library recently and was really excited by the idea that I wouldn't have to branch for IE in my event handlers. Is there any chance that such abstraction will come to Prototype? Thanks, Sam ___ Rails-spinoffs mailing l

Re: [Rails-spinoffs] Draggables and z-index

2006-06-01 Thread Sam Rowe
ler) will allow me to drag it... is that the expected behavior? # # -Andrew Martinez # # -Original Message- # From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Rowe # Sent: Tuesday, May 23, 2006 2:48 PM # To: rails-spinoffs@lists.rubyonrails.org # Subject:

[Rails-spinoffs] Draggables and z-index

2006-05-23 Thread Sam Rowe
I'm using Draggagle on a couple of divs and when I drop the first one, it'll always drop behind (in terms of z-index) the second one. I even added a revert function to add a CSS class to the div that should raise it up, but I think the style.zIndex is "winning." Looking at the code, it seems lik

Re: [Rails-spinoffs] Multiple dynamic Sortables

2006-05-22 Thread Sam Rowe
On Fri, May 19, 2006 at 10:05:17AM -0600, Tom Gregory wrote: # The callback definition is your problem: # Sortable.create('pathul-' + cg,{onUpdate:function(){reorderPaths # (Sortable.serialize('pathul-' + cg))}}); # # As you've discovered, it will always call reorder/Serialize on the # most

Re: [Rails-spinoffs] Multiple dynamic Sortables

2006-05-19 Thread Sam Rowe
On Fri, May 19, 2006 at 08:47:16AM -0600, Tom Gregory wrote: # The sortable demos haven't worked for a while. ( http:// # dev.rubyonrails.org/ticket/4690 ) # # The documentation is, in most cases, out of date. The following # worked for me: # # http://www.w3.org/ # TR/html4/strict.dtd"> # #

[Rails-spinoffs] Multiple dynamic Sortables

2006-05-19 Thread Sam Rowe
I'm writing an appliation that contains several dynamically created lists. I had hoped that the following method for using the Sortable library from scriptaculous would work: 1) create the list 2) create a Sortable for it 3) create another list 4) create a Sortable for it and so on. Unfortunately