try this code for drowp down functionality

echo
$form->create('PopularFirm',array('url'=>array('controller'=>'dashboards','action'=>'popular_firms'),'div'=>false));

echo $form->input('name',
array('label'=>false,'div'=>false,'style'=>'margin-left:0;width:150px','type'=>'select','options'=>$firmlist
,'id'=>'popularlist','empty'=>'All'));

echo $ajax->observeField('popularlist',
array('with'=>'Form.Element.serialize(\'popularlist\')','url'=>'popular_firms','update'=>'popular_info','complete'=>"Effect.Appear('popularlist');",'onChange'=>true));

  echo $form->end();


On Mon, Mar 16, 2009 at 4:54 PM, Manisha P <[email protected]> wrote:

>
> Hello All,
>
> I am using $ajax->observeField()
>
> It is showing me error 'Form is not defined' in javascript console.
>
> Does anyone has some solution for this?
>
> Thanks in advance
>
> Manisha.
> >
>


-- 
Regards,
Gayatri,
IT Associate,
IEG,
Hyderabad.

--~--~---------~--~----~------------~-------~--~----~
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