You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by taha siddiqi <ta...@gmail.com> on 2009/05/02 08:15:35 UTC
Does javascript:onload get executed on each ajax update ?
Hi All,
I have to execute some code every time a form gets loaded. When I load
the form in a non-ajax way it works but in an ajax call it fails to
run the script.
I have added an IHeaderContributor which contributes using
TextTemplateHeaderContributor.forJavaScript.
The script is uploaded on dom ready. Actually using jQuery $(function(){}
Thanks in advance
Taha
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Does javascript:onload get executed on each ajax update ?
Posted by taha siddiqi <ta...@gmail.com>.
Found the answer
IHeaderResponse.renderOnDomReadyJavascript()
regards
Taha
On Sat, May 2, 2009 at 11:45 AM, taha siddiqi <ta...@gmail.com> wrote:
> Hi All,
>
> I have to execute some code every time a form gets loaded. When I load
> the form in a non-ajax way it works but in an ajax call it fails to
> run the script.
>
> I have added an IHeaderContributor which contributes using
> TextTemplateHeaderContributor.forJavaScript.
>
> The script is uploaded on dom ready. Actually using jQuery $(function(){}
>
> Thanks in advance
> Taha
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org