struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yayo <eduy...@gmail.com>
Subject Re: ajax - how to remove my form after the user clicked submit.
Date Tue, 01 Apr 2008 21:29:15 GMT
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 <xianwinwin@gmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Sit tibi terra levis"

http://yayocaturas.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message