> 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']
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
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
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.
--~
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
> 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
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
> 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
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
> 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;
?>
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
> 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;
>
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
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
14 matches
Mail list logo