I'm not sure whether I get rigth your case but I think you should look at

Ajax-Driven Form in http://www.symfony-project.org/book/1_2/11-Ajax-Integration

form_remote_tag will make an ajax call when submit is pressed passing
to the indicated action all form data and dynamically update (on
sucessfull response) the dome elemet indicated in the "update"
parameters (the news list for example).
The action will have to pass so I suggest to use a partial/fragment
for the news list to be reused by the main page/component action and
by the ajax call action.

Regards

Martino


On Wed, Feb 25, 2009 at 10:04 AM, SeeVik <[email protected]> wrote:
>
> Hello all
>
> I have created a components which displays a list of news headlines (I
> read this in the book Definitive Guide to Symfony).
>
> Now this headlines component I am calling in a template. I customized
> this component a bit by adding a filter for date, and a keyword search
> utility.
>
> Now I am confused how to display the keyword search results. Like I
> have a button for search, what should I put in place of submit action
> when this button is pressed?
>
> 1. Should it be the name of view in which this component is called?
> 2. Should it be the name of partial which the component is constituted
> of?
> 3. Should it be the some new action that I have created? (This is not
> correct becoz doing this opens the search results in a new page, I
> want to display the results just below the search panel).
>
> can anybody help me out with this?
>
> Thanks and Regards
> Vikram
> >
>

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

Reply via email to