Hmm I think I see what you are saying, but I don't think that'll work
in an ajax request ... since it won't refresh the view, I need to
return only the html that's changed, not have the whole page refresh.
But this gives me an idea that I'll play with ..

 - Corey

On Feb 10, 12:14 pm, brian <[email protected]> wrote:
> not sure this is the best way to do this
>
> function refreshSearchElement()
> {
>   $this->layout = false;
>   // get your new param ...
>   $this->set('new_param', $new_param);
>
> }
>
> refresh_search_element.ctp:
>
> echo $this->element('search_element_1', array('the_param', $new_param));
>

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