You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by danelav <da...@chemeketa.edu> on 2009/03/11 04:07:02 UTC

Putting an Ajax Callback in AjaxEventBehavior

I have an image with an onmouseup AjaxEventBehavior. This results in the
following markup:

&lt;img id="M6" onmouseup="var
wcall=wicketAjaxGet('?wicket:interface=:0:lightBulbsBank:bankItems:1:image::IBehaviorListener:1:',null,null,
function() {return Wicket.$('M6') != null;}.bind(this));" ... /&gt;

I want to put a JavaScript function into the second parameter of
wicketAjaxGet, which is currently null -- how do I get it there?
-- 
View this message in context: http://www.nabble.com/Putting-an-Ajax-Callback-in-AjaxEventBehavior-tp22448059p22448059.html
Sent from the Wicket - User 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: Putting an Ajax Callback in AjaxEventBehavior

Posted by Martin Funk <ma...@googlemail.com>.
override

	protected CharSequence getSuccessScript()
	{
		return null;
	}

of AbstractDefaultAjaxBehavior

mf


Am 11.03.2009 um 04:07 schrieb danelav:

>
> I have an image with an onmouseup AjaxEventBehavior. This results in  
> the
> following markup:
>
> &lt;img id="M6" onmouseup="var
> wcall=wicketAjaxGet('?wicket:interface=:0:lightBulbsBank:bankItems: 
> 1:image::IBehaviorListener:1:',null,null,
> function() {return Wicket.$('M6') != null;}.bind(this));" ... /&gt;
>
> I want to put a JavaScript function into the second parameter of
> wicketAjaxGet, which is currently null -- how do I get it there?
> -- 
> View this message in context: http://www.nabble.com/Putting-an-Ajax-Callback-in-AjaxEventBehavior-tp22448059p22448059.html
> Sent from the Wicket - User 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
>