Hello,
I need use "please wait, I'm working ..." message, when user submit the form
and cocoon get the data from database. When the page is ready, hide this
message and show the result page.
In standard way without cocoon forms I use ajax for this:
httpRequest = new XMLHttpRequest();
httpRequest.open("GET", "data_page", true);
httpRequest.onreadystatechange= function () {processRequest(); } ;
httpRequest.send(null);
showPleaseWaitDialog();
function processRequest()
{
var data = httpRequest.responseText;
var el = document.getElementById("some_div");
el.innerHTML=data;
hidePleaseWaitDialog();
}
If I used cocoon forms the ajax is encapsulated in cocoon and dojo. Where
can I place the functions showPleaseWaitDialog() and hidePleaseWaitDialog()
when I wait for the httpRequest result.
Thanks.
Pavel Navrkal
--
View this message in context:
http://www.nabble.com/ajax%2C-please-wait%2C-I%27m-working-...--message-tp18066866p18066866.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]