cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Tekeshe" <tekes...@paynet.co.zw>
Subject Howto Display a Progress Page / Bar
Date Tue, 24 Feb 2004 07:21:16 GMT
How do I display a progress / please wait page? The following code snippet is not working.

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");

// ...


Mime
View raw message