Hi Khaled I can't see anything wrong with your code myself.
Are you using the Firebug extension in FireFox? If not, it is great for inspecting the result of Ajax actions. I use it to debug exactly this sort of issue. It will let you see the select tag code and check that the values in the tag are being set correctly. Regards, Langdon Khaled wrote: > hi > i'm have ajax observeField that getting Provinces of the Country from > DB > > <?php > echo $html->selectTag( > 'User/country_id', > $count, > null, > array(), > array(), > true > ); > ?> > </div> > <div id="box"></div> > <?php > echo $ajax->observeField( > 'UserCountryId', > array( > 'frequency' => '1', > 'url' => '/countries/get_province/'.$user['User']['province_id'], > 'update' => 'box' > ) > ); > ?> > > <?php > // get_province.ctp > echo $html->selectTag( > 'User/province_id', > $prov, > $sel, > array(), > array(), > true > ); > > ?> > > when the action rendered in HTML code everething is OK, i see > <select> tags > but when form is submited in POST array i don't see province_id element --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
