struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger <roger.var...@googlemail.com>
Subject Re: Struts2 : Calling AJAX function on button click(ONLY)
Date Wed, 29 Oct 2008 11:55:44 GMT
On Tuesday 28 October 2008 20:01:41 Kanade, Sayali wrote:
> Thanks for your reply, but not sure it answers my question.
>
> My question is: How can I prevent a div from refreshing its contents on
> page load? The div should only be refreshed on button click.
>
> My problem is that, my div loads on page load. It also reloads on submit
> button click, but it should ONLY load on submit click, not on page load.
>
> The action that executes in my div has to be only executed after the user
> selects a checkbox and clicks submit.
>
> Please help, I have browsed for this answer for hours!!!
>

You could tryusing a Javascript function to set your div to "display:none" on 
page load and re-set it when you want to display it.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message