You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lurtz Nazgul <lu...@ymail.com> on 2011/08/03 10:36:50 UTC
flush ajaxRequestTarget.appendJavascript
Hi;
When i append jquery progressbar script to AjaxRequestTarget like below
for (int i = 0; i < 101; i++) {
ajaxRequestTarget.appendJavascript("$(document).ready(function()
{\n" +
" $(\"#progressbar\").progressbar({ value: " + i
+ " });\n" +
" });");
// .... other stuff
}
Wicket sends it to the server, but i need to flush that jquery script code in
order to work progressbar.
Any suggestions ?
Thanks.
Re: flush ajaxRequestTarget.appendJavascript
Posted by Lurtz Nazgul <lu...@ymail.com>.
I used AjaxSelfUpdatingTimerBehavior and it's done.
Thanks.
________________________________
From: Lurtz Nazgul <lu...@ymail.com>
To: users@wicket.apache.org
Sent: Wed, August 3, 2011 11:36:50 AM
Subject: flush ajaxRequestTarget.appendJavascript
Hi;
When i append jquery progressbar script to AjaxRequestTarget like below
for (int i = 0; i < 101; i++) {
ajaxRequestTarget.appendJavascript("$(document).ready(function()
{\n" +
" $(\"#progressbar\").progressbar({ value: " + i
+ " });\n" +
" });");
// .... other stuff
}
Wicket sends it to the server, but i need to flush that jquery script code in
order to work progressbar.
Any suggestions ?
Thanks.