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');
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' :
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
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