For some reason my sortable data is getting screwed up somewhere.

The ul li id's are the UUID so 36 char key and when I do the sort I see 

data4da0ab64-3138-4d6a-9faf[]=5238adffd636&4da0ab8e-5afc-4996-abc5[]=5237adf
fd636

Notice the []= stuck right in the middle of the data. The UUID for this are 

4da0ab8e-5afc-4996-abc5-5237adffd636
4da0ab64-3138-4d6a-9faf-5238adffd636

When I had regular auto inc id's everything worked fine but only changed the
id's to UUID and now the data array is messed up. Is there something where
the.

I am debugging the data right after action call

function order() {
        !empty( $this->data ) { 
                debug($this->data);
                exit();
        }

}

Js script

$.ajaxSetup({cache: false});
        $("#sortable").sortable({
                handle: '.drag',
                axis: 'y',
                scroll: false,
                forcePlaceholderSize: true,
                placeholder: 'ui-state-highlight',
                tolerance: 'pointer',
                containment: 'parent',
                update: function() {$.post('/admin/order/',
                        {data: $("#sortable").sortable('serialize')});
        }
        });

I know about html / css id's starting with a letter and so for the sake of
that I know it worked and my ID's are prefixed but since nothing is working
I removed everything and stripped it down to barebones.

Any ideas from anyone who might have some insight.

Thanks,

K 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to