Re: Ajax Sortable Tutorial?

2006-05-20 Thread Jon Bennett
> My getGroupOrder() javascript function serializes my sortable list and > returns the values as a "string" separated by &'s for tokenization in > my contoller class "updateitemorder" . "updateitemorder" is able to > access the string with the following statement: > > $args=$this->params['data']

Re: Ajax Sortable Tutorial?

2006-05-20 Thread Reggie
Yep, I don't think I would have been able to figure it out without your example. I hope this scales well for future use. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: Ajax Sortable Tutorial?

2006-05-19 Thread Reggie
In case anybody else searches for this information in the future, I was able to get Scriptaculous sortable and serialize to work with AJAX and and use the information from the serialize to update by database. Create a form in your view like this: hidden('Item/hidd

Re: Ajax Sortable Tutorial?

2006-05-18 Thread Reggie Johnson
Jon, does the information from this post help at all? http://groups.google.com/group/cake-php/browse_thread/thread/694d96b7ac6f99a9/4d1ff2be201cd6ad?q=sortable&rnum=2#4d1ff2be201cd6ad I'm still trying to make heads or tales of it, myself, but it looks like this person had the same problem. --~

Re: Ajax Sortable Tutorial?

2006-05-18 Thread Reggie Johnson
I'm sorry, but I have no idea how to get the serialized list back to my controller. I can build the the link that I would like the send back to method I want to handle the data in my controller, but I can't figure out how to send it. Your example is the first one I've seen since I started search

Re: Ajax Sortable Tutorial?

2006-05-17 Thread Jon Bennett
> Thanks, that did it. I appreciate the help. no problem, perhaps you can now help me :) How are you manipulating the data once you've re-ordered it? I'm currently calling a javascript function from the onclick tag of a href: create playlist function doUpate () { // al

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Reggie Johnson
Jon, Thanks, that did it. I appreciate the help. --~--~-~--~~~---~--~~ 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, sen

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Jon Bennett
> I just installed Firebug, so I don't know my way around it very well > yet. Loading the page that's been giving me problems gives me the > following two errors there: > > Error #1 >> > syntax erroreffects.js (line 1) > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > << End error

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Reggie Johnson
I just installed Firebug, so I don't know my way around it very well yet. Loading the page that's been giving me problems gives me the following two errors there: Error #1 >> syntax erroreffects.js (line 1) http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> << End error #1 Error #2 >> S

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Jon Bennett
> including the following in my layout file: > charsetTag('UTF-8') ?> > link('prototype') ?> > link('scriptaculous.js?load=effects') ?> hmm, that looks ok, I have: link('scriptaculous1.6.1/lib/prototype.js'); echo $javascript->link('scriptaculous1.6.1/src/scriptaculous.js'); endif; ?>

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Reggie Johnson
Jon, How are you including the scriptaculous and prototype files? I am including the following in my layout file: charsetTag('UTF-8') ?> link('prototype') ?> link('scriptaculous.js?load=effects') ?> But I am getting an error saying "No class found for the model J". I created my own layout file

Re: Ajax Sortable Tutorial?

2006-05-16 Thread Jon Bennett
> I thought I might get more help if I posted the non-working code that I > am using for my sortable list. > > > sortable('medal_sort', array('ghosting'=>'true', > 'constraint'=>'false')) ?> > $counter=0; >

Re: Ajax Sortable Tutorial?

2006-05-15 Thread Reggie
I thought I might get more help if I posted the non-working code that I am using for my sortable list. sortable('medal_sort', array('ghosting'=>'true', 'constraint'=>'false')) ?> '; echo $html->image('medals/'.$item

Ajax Sortable Tutorial?

2006-05-15 Thread Reggie Johnson
Does anybody have an example on how to use the $ajax->sortable helper? Right now I'm a little confused as to which ID I use as the parent ID that is passed to the helper. I have an unordered list with a "DIV" ID, and I also have ID's for each of the items in the list. Which one should I use? Al