PromptDialog.js 1001 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2011
  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 PromptDialog(oCV) {
  13. this.m_oCV = oCV;
  14. this.m_dialogImpl = null;
  15. }
  16. PromptDialog.prototype = new IPromptDialog();
  17. PromptDialog.prototype.initialize = function(url,width,height) {
  18. this.m_dialogImpl = new CModal("", "", document.body, null, null, width, height, true, true, false, true, this.m_oCV.getWebContentRoot());
  19. var dialogIframe = document.getElementById(CMODAL_CONTENT_ID);
  20. dialogIframe.src = url;
  21. };
  22. PromptDialog.prototype.show = function() {
  23. this.m_dialogImpl.show();
  24. };
  25. PromptDialog.prototype.hide = function() {
  26. this.m_dialogImpl.hide();
  27. destroyCModal();
  28. };