RE: [PHP] NetFlix Drag and Drop Row Ordering
| From: | Nathan Tobik | Date: | Thu, 24 Mar 2005 15:01:58 +0000 |
| Subject: | RE: [PHP] NetFlix Drag and Drop Row Ordering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211471@lists.php.net to get a copy of this message | ||
I've used drag and drop row ordering before. The only PHP I used was to
read a record set and write it out for the different items. The piece
of code I used worked with JavaScript and html. Basically there was a
large div, and each element inside of the main div was a div. It
grabbed the onclick event, grabbed the coordinates of where you're
moving the piece, and when you dropped it, the JavaScript bumped
everything down, or up depending on what you did. I put each item into
a form, then submitted that when the page was finished.
It's pretty simple code if you're good at JavaScript, if not search the
internet for a while you'll find some examples. Best of luck.
Nate Tobik
(412)661-5700 x206
VigilantMinds
-----Original Message-----
From: Graham Anderson [mailto:grahama@siren.cc]
Sent: Wednesday, March 23, 2005 10:45 PM
To: php-general@lists.php.net
Subject: [PHP] NetFlix Drag and Drop Row Ordering
For those who have netflix, does anyone know how you would recreate
their 'drag and drop' queue widget?
basically, you can drag and drop movies in the order you choose
is this a combination of javascript and php ?
how would you go about creating something like this to order rows in
your own CMS ?
extremely cool
g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php