OK so here is the problem.. I have a simple country / state
selector ..
$this->setWidget('state_id', new
sfWidgetFormDoctrineSelect(array(
'model' => 'State',
'query' =>
Doctrine_Query::create()->from('State')->where
('country_id = ?', DEFAULT_COUNTRY_ID)
)));
$this->object->setCountryId(DEFAULT_COUNTRY_ID);
$this->setDefault('country_id', DEFAULT_COUNTRY_ID);
using ajax.. upon selection of a country.. states dropdown gets
updated.. easy.
The problem here is when I hit refresh for the page.. the setDefault
for country_id has no effect.. the country will show for instance
US .. but the states listed will be for Canada.
Could this be a browser issue? i have only tried this on Firefox
(3.0.5) . On first page hit though.. the correct country is
defaulted.. Canada. If I change this .. then hit page refresh.. the
selected Country is the one before I hit refresh.. but the states is
updated to back to default...
Any help is appreciated.. cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---