Does anyone know how to update 2 DIVs using the
Ajax.InPlaceCollectionEditor? What I have is a drop down for selecting the
users Country. That works fine. But when a users changes a country I also
have the country flag image I want to update also. The country table has:
id - country id
name - full country name
iso - the image name
view code:
// updates the user country
<label for="country_id"><?php __(Country);?>:</label><div
id="country_id"><?php echo $user['Country']['name'];?></div>
<label for="flag"><?php __('Flag');?>:</label><?php echo
$html->image('flags/'.$user['Country']['iso'].'.gif'); ?></div>
echo
$ajax->editor('country_id','/users/ajax_update/'.$user[User]['id'].'/country
_id',
array('collection' => $countryList,));
thanks
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---