Hi,

I want to use an autocomplete of states and cities with Ajax in a
form. It works perfectly in Firefox and Opera, but not in Chromium.
Which can be the reasons or how/what i have to check to get an idea of
its malfunction?!?
What i already checked is the fact that JavaScript is activated.

Thanks a lot :)

----------- CODE ------------
echo $this->Form->input('country_id' , array('id' => 'countries',
'type' => 'select', 'label' => 'Please select a country', 'options' =>
array('' => '-',$countries)));
echo $this->Form->input('state_id' , array('id' => 'states', 'type' =>
'select', 'label' => 'Please select a state', 'options' => array('' =>
'-',$states)));
echo $this->Form->input('city_id' , array('id' => 'cities', 'type' =>
'select', 'label' => 'Please select a city', 'options' => array('' =>
'-',$cities)));

echo $javascript->link('/js/scriptaculous183/lib/prototype');
echo $javascript->link('/js/scriptaculous183/src/scriptaculous');
...
echo $ajax-
>observeField('countries',array('url'=>'update_state_select','update'=>'states'));
echo $ajax-
>observeField('states',array('url'=>'update_city_select','update'=>'cities'));

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to