How do I display a progress / please wait page? The following code snippet is not working.No. Of course that wouldn't. Firstly, you need to use sendPagaAndWait() in order for processing to continue. Secondly, the processing continues when the user has submitted the page you've sent, not as soon as the page has been sent.
Thanks in advance
// flow.js
// ...
cocoon.sendPage("html/wait.htm");
for(var row = 0; row < repeater.getSize(); row++)
{
var isSelected = repeater.getWidget(row, "select").getValue().booleanValue();
if (isSelected)
{
var msgId = repeater.getWidget(idx, "reference").getValue();
var xpath = "/msg/msg-id[text()='" + msgId + "']";
var dbxmlAdaptor = new Packages.zw.co.eswitch.adaptor.DBXMLAdaptor(xpath);
if (submitBtn == "auth1")
{
dbxmlAdaptor.update("status", "AUTH-2");
print("Message : " + msgId + " status changed to AUTH-2");
}
}
}
cocoon.sendPage("html/done.htm");
/
To do this, what you'd have to do is initiate a background process to do the calculation, send them a page that says "please wait", and has an automatic refresh <meta> tag, set to, say, 2 seconds, pointing at a second page. This second page, when loaded, then collects the results of the background process.
I'm afraid, as far as I can see, there's no easy way to get around this using Flow.
But I'd be delighted to be corrected.
Regards, Upayavira
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
