Tuesday, August 30, 2011

Re: Pagination and JQuery: Passing parameters with JQuery to controller

There is nothing special about achieving this as CakePHP takes the
passed or named variables the same way as any other time. Simply send
an ajax request to:

/controller/action/variableValue

or

/controller/action/variableName:variableValue

If you're still struggling to access the variable in your action add
echo debug($this->params); to see where the variable ends up.

HTH, Paul.

On Aug 29, 3:41 pm, Tomfox Wiranata <tomfox.wiran...@gmail.com> wrote:
> hi huoxito,
>
> thx for your post. no i didnt get there cause my way worked too.....
> if you/someone know/knows how to pass a variable with jquery to the
> isAjax() i'd rather stay with my solution, otherwise i might give it a
> try..
>
> On Aug 29, 2:22 pm, huoxito <huox...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Have u tried to do it use cake built in ajax pagination?
>
> >http://book.cakephp.org/view/1600/Ajax-Pagination

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: