I have used cjs successfully for a while I really think its awesome :)
But now I need to
I have $ajax->link() which calls a number of views :)
My ajax link is :
$ajax->link('Choose','/companies/init_list/' . $company_id)
my function init_list($id=null)
{
$this->set('users', $this->User->findAll("User.company_id =
'$id'"));
$this->view = 'Cjs';
}
my cjs file is :
<?php
echo
$page->replace_request_action('#default_list','/companies/default_list');
echo
$page->replace_request_action('#custom_list','/companies/custom_list');
echo
$page->replace_request_action('#user_list','/companies/user_list');
echo $page->effect('#default_list','Highlight');
echo $page->effect('#custom_list','Highlight');
echo $page->effect('#user_list','Highlight');
?>
this... doesnt work :) Hmm... if I put in my cjs:
echo $page->replace_request_action('#user_list','/companies/user_list/'
. $id);
if I set it in my init_list then move my set logic into function
user_list it renders the result, but doesnt update the view.
Anyone passed varaibles before? (not a personal question)
Cheerio!
Ryan!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---