hello there
quick question with ajaxHelper
i have a few select boxes on the page and i need one to update based
upon the value of the other. i dont have a problem getting it to call
an action via observeField BUT i can't seem to pass that action the
value of the form field.
here is my code:
echo $form->create('Testing');
//select 1
echo $form->select('zone_id', $zones , NULL, array('id'=>'zone_id'),
true );
//select 2
echo $form->select('country_id', array('Please Select a Country' ) ,
0, array('id'=>'country_id'), false );
echo $form->end('Next Step');
echo $ajax->observeField( 'zone_id', array('url' => array
( 'controller'=>'testings', 'action' => 'get_country',
WHATGOESHERETOPASSPARAMETER???), 'update'=>'country_id' , 'frequency'
=> 0.2,) );
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---