> I thought I might get more help if I posted the non-working code that I > am using for my sortable list. > > <div id="medal_sort"> > <?php $ajax->sortable('medal_sort', array('ghosting'=>'true', > 'constraint'=>'false')) ?> > <?php > $counter=0; > foreach ($data as $row) { > $item = $row['Medal']; > print '<div id="'.$counter.'" > class="medal">'; > echo > $html->image('medals/'.$item['url'], > array('align'=>'center')); > print '</div>'; > $counter++; > } > ?> > </div>
this works for me: <div class="Data clearfix"> <ul id="playlist-centre"> <li id="centre_One" style="margin: 5px; padding: 0 5px; border: 1px solid #98aecb;">One</li> <li id="centre_Two" style="margin: 5px; padding: 0 5px; border: 1px solid #98aecb;">Two</li> <li id="centre_Three" style="margin: 5px; padding: 0 5px; border: 1px solid #98aecb;">Three</li> <li id="centre_Four" style="margin: 5px; padding: 0 5px; border: 1px solid #98aecb;">Four</li> </ul> <?php echo $ajax->sortable('playlist-centre', $options); ?> </div> -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---