[Rails-spinoffs] RE: drag and drop sorting with an empty lis

2006-03-31 Thread Bryan Buchs
I ran into this issue too. My solution was to add an "onUpdate" function to the sortable that tests the container to see if it's got any children or not: function is_empty(container) { if ($(container).hasChildNodes()) { Element.removeClassName($(container),'empty');

[Rails-spinoffs] Behaviour & Effect.Highlight?

2006-01-18 Thread Bryan Buchs
I'm having a problem with Effect.Highlight and a simple Behaviour rule. In brief, I have a Sortable list. Using Behaviour, I add a hover effect (apply a style on mouseover, remove style on mouseout). The styles contain a border color and background color. var myrules = { '.sortable li' :

[Rails-spinoffs] Re: gmail attached file field magic

2006-01-05 Thread Bryan Buchs
It's also possible to use a hidden Flash element on the page, if you don't mind going that route. The added benefit being that you can post MULTIPLE files at the same time. Check out "BubbleShare" for an example: http://www.bubbleshare.com Here's some reference on the subject: http://www.emllabs

[Rails-spinoffs] 'floating dialog' class

2005-12-16 Thread Bryan Buchs
Inspired partly by what others are posting here, and partly out of necessity, I threw together a "floating dialog" widget class. It's more or less a rip-off of the dialog widget from the Dojo framework - I had a need for something similar, but didn't want to move outside of the Prototype/Scriptacul