Hi,

I managed to get a redborder style to be applied by adding this to my js :
Sortable. dropon) {
    var d = Sortable.options(dropon);
    if(element.parentNode!=dropon) {
        var oldParentNode = element.parentNode;
        dropon.appendChild(element);
        Sortable.options(oldParentNode).onChange(element);
        d.onChange(element);
    }
    Droppables.activate(d);
}
and by adding hoverclass:'dragover' to Sortable option

my css class look like this : .dragover {border:1px solid red;}

Regards,
Nicolas


On 2/16/06, Ed C. <[EMAIL PROTECTED]> wrote:
If you set ghosting: false, the other items will move while around the
selected item you're dragging.

I haven't been able to implement a drop-space-indicator ("red border") yet

instead, I've opted for using ghosting and a "fancy" image to leverage
Sortable's built-in "dropmarker" effect.

(This gives the user a nice visual indication of where their 'widget'
will be dropped, but IMHO not as nice as the
red-border-drop-space-indicator.)

On 2/15/06, Benjamin Mack <[EMAIL PROTECTED]> wrote:
> hey,
>
> In fact, I created something like (actually, a dashboard too) this but
> way simpler and not that sophisticated. But: What I didn't figure out
> was how I can make the others move while still dragging and how I got
> this nice little red border around while I was dragging it. Mmh, maybe I
> should play around a bit more with it :-)
> I would be happy, Ed, if you have already figured out those issues.
>
> greetings,
> benni.
> -SDG-
>
>
> Ed C. wrote:
> > Hi list,
> >
> > Is it possible to create a "dashboard" type application, like
> > Netvibes.com, w/ script.aculo.us?
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to