Ok, thanks,
So, if it should be ok, I wonder why after the first execution, I only
get
INFO: Channel busy - postponing...
So I can't use my component more than once...
On Jul 3, 2010, at 10:36 PM, nino martinez wael wrote:
Should be ok I guess, heres the definition of it, ..:
function wicketAjaxGet(url, successHandler, failureHandler,
precondition)
2010/7/3 David Leangen <wic...@leangen.net>
I should add that in my onCloseHandler, I have this in my js:
$('#popup #popup-close-link').click(function (e)
{
e.preventDefault();
$('#popup-mask, #popup-window').hide();
if( url != "" )
wicketAjaxGet(url, null, null, null);
});
As far as I can tell, this seems to be the correct use of
wicketAjaxGet...
Cheers,
=David
On Jul 3, 2010, at 4:22 PM, David Leangen wrote:
Hello, Wicketeers,
I have a link that is supposed to call a JQuery component called
"popup".
final AjaxLink<Void> popupLink = new AjaxLink<Void>( "link.popup" )
{
@Override
public void onClick( AjaxRequestTarget target )
{
target.addComponent( popup );
final StringBuilder s = new StringBuilder();
s.append( "$.fn.popup({" )
.append( "url:
\"" ).append( onCloseBehavior.getCallbackUrl()
).append( "\"" )
.append( "});" );
target.appendJavascript( s.toString() );
}
};
Works just fine the first time, but each subsequent call, I can
see the
following message in the Ajax Debug Window:
INFO: Channel busy - postponing...
Other than the link above, nothing else is going on!
Do I need to somehow close the channel, or something?
Thanks!
=David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org