Re: [scriptaculous] dragging and <input> field
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: [scriptaculous] dragging and <input> field

From: Aaron Gray <ang.usenet@gmail.com>
Date: Fri Nov 25 2005 - 23:48:21 CET

> I have a form with a couple of input fields, embedded within spans. I am
> using script.aculo.us for dragging and dropping, and want to reorder the
> input fields that way. The input fields are display:inline because I
> want them all on the same line.
>
> Does anyone know of a smart trick to be able to drag these input fields?
> Just setting their disabled attribute doesn't work, because then they
> get no events. Not setting disabled just causes the fields to show a
> text cursor when you try to drag. I have a working solution with
> absolutely positioned blocks on top of the inputs, that drag the fields
> with them, but I find it quite ugly.
>
> Anyone any better suggestions?

You need to do for <span>'s what has been done for <div>'s with drag and
drop.

Aaron
Received on Sat Dec 3 04:30:25 2005