| 
	
 | 
 Posted by Graham Anderson on 03/24/05 21:28 
thanks for the tip 
 
I am pretty unfamilar with javascript.. 
But for my purposes, I guess I better learn it 
I am fairly conversant in a couple of languages so hopefully it won't  
be too bad 
recommend a good book ? 
 
 
Essentially, I want CMS users to be order their own playlist of  
multimedia tracks. 
Is there any reason not to take a javascript approach ? 
because this would be for a CMS only  the javascript does not have to  
work for EVERY browser.... 
 
Out of curiosity, are you still using this approach? Or, was it too  
problematic ? 
g 
 
On Mar 24, 2005, at 7:01 AM, Nathan Tobik wrote: 
 
> 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 
>
 
  
Navigation:
[Reply to this message] 
 |