You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by podmak <po...@azet.sk> on 2013/08/27 16:21:13 UTC

AjaxSubmitLink and AjaxRequestTarget.appendJavaScript

hi, 
I need add some js in my AjaxSubmitLink.onSubmit(AjaxRequestTarget target,
Form<?> form) but it is not working. example on my onSubmit function:
@Override
protected void onSubmit (AjaxRequestTarget target, Form<?> form)
{
	super.onSubmit(target, form);
	target.appendJavaScript("myJS");
}

Is appendJavaScript working only in AjaxLink or?

thanks




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxSubmitLink-and-AjaxRequestTarget-appendJavaScript-tp4661101.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxSubmitLink and AjaxRequestTarget.appendJavaScript

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Tue, Aug 27, 2013 at 5:21 PM, podmak <po...@azet.sk> wrote:

> hi,
> I need add some js in my AjaxSubmitLink.onSubmit(AjaxRequestTarget target,
> Form<?> form) but it is not working. example on my onSubmit function:
> @Override
> protected void onSubmit (AjaxRequestTarget target, Form<?> form)
> {
>         super.onSubmit(target, form);
>         target.appendJavaScript("myJS");
> }
>
> Is appendJavaScript working only in AjaxLink or?
>

No.
It should work in this case too.
Check the http response body with Firebug or similar tool.


>
> thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxSubmitLink-and-AjaxRequestTarget-appendJavaScript-tp4661101.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>