RequestExecutedIndicator.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2013
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. function RequestExecutedIndicator( cognosViewer)
  13. {
  14. if (cognosViewer) {
  15. RequestExecutedIndicator.baseConstructor.call( this, cognosViewer );
  16. }
  17. };
  18. RequestExecutedIndicator.baseConstructor = WorkingDialog;
  19. RequestExecutedIndicator.prototype = new WorkingDialog();
  20. /**
  21. * returns the html for a very simple wait dialog with a wait icon and some text.
  22. */
  23. RequestExecutedIndicator.prototype.renderHTML = function()
  24. {
  25. var waitPageHtml = "<table id=\"CVWaitTable" + this.getNamespace() + "\" requestExecutionIndicator=\"true\" class=\"viewerWorkingDialog\" role=\"presentation\">";
  26. waitPageHtml += "<tr><td align=\"center\">";
  27. waitPageHtml += "<div class=\"body_dialog_modal\">";
  28. waitPageHtml += "<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" style=\"vertical-align:middle; text-align: left;\" role=\"presentation\">";
  29. waitPageHtml += "<tr><td rowspan=\"2\">";
  30. waitPageHtml += "<img alt=\"" + RV_RES.GOTO_WORKING + "\" src=\"" + this.getCognosViewer().getSkin() + "/branding/progress.gif\" style=\"margin:5px;\" width=\"48\" height=\"48\" name=\"progress\"/>";
  31. waitPageHtml += "</td><td nowrap=\"nowrap\"><span class=\"busyUpdatingStr\">";
  32. waitPageHtml += RV_RES.GOTO_WORKING;
  33. waitPageHtml += "</span></td></tr><tr><td nowrap=\"nowrap\"><span class=\"busyUpdatingStr\">";
  34. waitPageHtml += RV_RES.RV_PLEASE_WAIT;
  35. waitPageHtml += "</span></td></tr><tr><td style=\"height:7px;\" colspan=\"2\"></td></tr></table></div></td></tr></table>";
  36. return waitPageHtml;
  37. };
  38. RequestExecutedIndicator.prototype.getContainerId = function() {
  39. return "CVWaitindicator" + this.getNamespace();
  40. };