the select fields and send them using ajax to the server, am I
correct?
Assuming I am correct :) I would use javascript to get the value from
each select field, probably the select fields should have an ID each,
or the container DIV should have one, then based on that, gather the
values, and send them to the server.
I am not fluent in javascript, but it should be easy to find some
examples that you may be able to modify slightly.
Hope this helps you on the way,
John
On Apr 28, 9:28 am, MANOJ DHAMAL <manoj.dham...@gmail.com> wrote:
> Hi,
> I am using three combobox in .ctp file.
> Like
> <?php echo $form->select('category_id',$category_options,
> $category_selected,array('id'=>'category','class'=>'search_input'),false); ?
>
>
>
> <?php echo $form->select('type_id',$type_options,
> $type_selected,array('class'=>'search_input'),false); ?>
>
> <?php echo $form->select('sortby_id',
> $sort_by,null,array('id'=>'sortby'),false); ?>
>
> For third combo i m using ajax, so i used observeField method to find
> change at state of third combo which calls action
> sort_property_searchresult like..
>
> <?php echo $ajax->observeField('sortby',array('url'=>'/properties/
> sort_property_searchresult','update'=>'property_showcase_table'));?>
>
> At sort_property_searchresult() i want fetch values of all comboboxes
> like
>
> $category=$this->data['Property']['category_id'];
>
> $type=$this->data['Property']['type_id'];
>
> $sortbyvalue=$this->data['Property']['sortby_id'];
>
> But i found value of $sortbyvalue, so please tell me how to fetch
> values of all comboboxes? Thanks..
[snip]
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment