blankNewWin.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE HTML>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: Viewer
  5. (C) Copyright IBM Corp. 2001, 2015
  6. US Government Users Restricted Rights - Use, duplication or
  7. disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <html lang="en">
  10. <head>
  11. <title>Blank</title>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13. <meta name="Copyright" content="(C) Copyright IBM Corporation and its licensors 2001, 2015.">
  14. <meta name="Trademark" content="IBM, the IBM logo, and Cognos are trademarks of IBM Corp., registered in many jurisdictions worldwide.">
  15. <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
  16. <link id="rvReportCSS" href="../skins/corporate/qs/RVReport.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript">
  18. <!--
  19. var sSkin = "../skins/corporate";
  20. /* figure out the skin folder */
  21. var sLocation = document.location.search;
  22. function resubmit()
  23. {
  24. if (window.history.length > 1) {
  25. window.history.go(+1);
  26. }
  27. else
  28. {
  29. var sCVId = "";
  30. if (sLocation.match(/\bcv\.id=([^&?]*)/))
  31. {
  32. sCVId = RegExp.$1;
  33. }
  34. var form = self.opener.document.getElementById('viewForm' + sCVId);
  35. if(form) {
  36. var BUSY_LINE_1 = document.getElementById("BUSY_LINE_1");
  37. while (BUSY_LINE_1.hasChildNodes())
  38. {
  39. BUSY_LINE_1.removeChild(BUSY_LINE_1.firstChild);
  40. }
  41. try
  42. {
  43. var oCognosViewerObject = window.opener["oCV" + sCVId];
  44. BUSY_LINE_1.appendChild(document.createTextNode(oCognosViewerObject.getString("RV_PLEASE_WAIT")));
  45. }
  46. catch(e)
  47. {
  48. }
  49. if(form["ui.action"] && form["ui.action"].value == 'view') {
  50. var tempBackURL = (form["ui.backURL"]?form["ui.backURL"].value:"");
  51. var viewForm = self.opener.document.getElementById('viewForm' + sCVId);
  52. if(viewForm) {
  53. var tempDoPostBack='';
  54. if(viewForm.doPostBack) {
  55. tempDoPostBack = viewForm.doPostBack.value;
  56. viewForm.doPostBack.value='';
  57. }
  58. if(viewForm["ui.backURL"])
  59. {
  60. viewForm["ui.backURL"].value = "javascript:window.close();";
  61. }
  62. viewForm.submit();
  63. viewForm.target="";
  64. if(viewForm['ui.backURL'])
  65. {
  66. viewForm['ui.backURL'].value = tempBackURL;
  67. }
  68. if(viewForm['ui.toolbar']) {
  69. viewForm['ui.toolbar'].value='';
  70. }
  71. if(tempDoPostBack!='') {
  72. viewForm.doPostBack.value = tempDoPostBack;
  73. }
  74. viewForm["ui.object"].value = form["ui.object"].value;
  75. viewForm["ui.format"].value = form["ui.format"].value;
  76. }
  77. } else {
  78. // cache form vars which need to be temporarily modifed to launch the new csv/xls window
  79. var tempBackURL = (form["ui.backURL"]?form["ui.backURL"].value:"");
  80. var tempErrURL = (form["ui.errURL"]?form["ui.errURL"].value:"");
  81. if (form["ui.backURL"]) {
  82. form["ui.backURL"].value = "javascript:window.close();";
  83. }
  84. if (form["ui.errURL"]) {
  85. form["ui.errURL"].value = "javascript:window.close();";
  86. }
  87. form.submit();
  88. form.target="";
  89. // restore the form vars
  90. if (form["ui.backURL"]) {
  91. form["ui.backURL"].value = tempBackURL;
  92. }
  93. if (form["ui.errURL"]) {
  94. form["ui.errURL"].value = tempErrURL;
  95. }
  96. if(form['ui.toolbar']) {
  97. form['ui.toolbar'].value='';
  98. }
  99. // restore the previous format
  100. if (form && form.previousFormat) {
  101. form["run.outputFormat"].value = form.previousFormat.value;
  102. form.removeChild(form.previousFormat);
  103. }
  104. }
  105. }
  106. }
  107. }
  108. //-->
  109. </script>
  110. </head>
  111. <body style="background-color: #FFFFFF;" onload="resubmit();">
  112. <table cellspacing="0" cellpadding="0" width="100%" height="100%" align="left" onload="resubmit();">
  113. <tr valign="top">
  114. <td>
  115. <span id="BUSY_LINE_1" class="busyUpdatingStr"></span>
  116. </td>
  117. </tr>
  118. </table>
  119. </body>
  120. </html>