I look at the wiki.cakephp.org, and there is a tutorial about the
$ajax->sortable.
Now, I can use it to drag and sort the items,like the code I paste
below.

<div style="height:200px;">
<div style="float:left;">
<h3>This is the first list</h3>
 <ul id="firstlist"
style="height:200px;width:200px;">
<?php foreach ($topics as $topic): ?>
<li><?php echo $topic['Topic']['created'] ?></li>
<?php endforeach; ?>
</div>
</div>
<? echo $ajax->sortable ("firstlist",array()) ?>

It works!
I can get data for ['Topic']['created']. BUT I am quite confuse the
following steps.
And I saw few topics about sortable in GG, more confuse. Someone said
to set a 'id' for each items in order to serialize.

Can anyone give me, a rookie, a clear tutorial about that amazing
function?
Also the same question, like save the positon in the database by using
drag&drop.

I know the http://grahambird.co.uk/cake/tutorials/ajax.php. It is great
and help me lots.But can someone help me to post more tutorials.

I think we should get the ajax function more easy to use. Compared with
other using very easier and clear.

Thanks


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to