i made it work! i used a variable checking what div whas clicked and a
dummy model.thanks for all your help :)
On 31 Aug., 10:04, Tomfox Wiranata wrote:
> hi paul,
>
> yes, with the links href i am already passing the page number
>
> controller/action/page:x
>
> to my actions isAjax() functio
hi paul,
yes, with the links href i am already passing the page number
controller/action/page:x
to my actions isAjax() function. but i need an additional parameter,
so my controller knows what element to render within the isAjax():
if ($this->RequestHandler->isAjax())
{
when user clicks on div
The parameter(s) should already be in the link's href attribute, if
not you're not using pagination to display your column sort and paging
links?
Have you read this (not done so myself, but should give you some
pointers):
http://bakery.cakephp.org/articles/daphonz/2008/05/03/easy-ajax-pagination-u
thx, again ;)
stupid question. with ajax request you mean doing so within jquery,
correct? how would i do it here?
$('#pagination_created a').live('click', function() {
var url = $(this).attr("href"); !<<
I'm having a feeling that i need to add the parameter to t
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 yo
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 wrote:
> Have u tried to do it use cake
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 rel
Hi,
this is hard to explain quick but i'll try :)
I have one view "profile" in my controller. in that profile.ctp i have
two elements. "following" and "created". in each element i want
paging.
i got it work for the element "following" but i need also for
"created". The Catch:
i need to use one