in teh callback of your ajax call add
document.getElementById("divOfYourFormID").innerHTML = "new content"
your action must have forwarded you to the "new content" a text with a
message like "everything's fine!" ^g^

On Tue, Apr 1, 2008 at 11:23 PM, xianwinwin <[EMAIL PROTECTED]> wrote:

>
> Hi there,
>
> I created an ajax capability to my form where the user clicks the 'add
> note'
> button -a textarea is shown with a submit button (the textarea is shown
> just
> below the [add note] button) the form works great.
>
> I wonder:
>
> 1. When the user clicks submit and the process is over - how can I
> 'pushback' the form (or to remove the text area from the page)?
>
> 2. say the user doesn't want to add any note, how can I, with the same
> button [add note], remove the textarea from the screen.
>
> THANK YOU!!!
>
> --
> View this message in context:
> http://www.nabble.com/ajax---how-to-remove-my-form-after-the-user-clicked-submit.-tp16425710p16425710.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Sit tibi terra levis"

http://yayocaturas.blogspot.com/

Reply via email to