PromptDialog.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_url = "";
  15. this.m_width = 0;
  16. this.m_height = 0;
  17. this.m_dialogImpl = null;
  18. }
  19. PromptDialog.prototype = new IPromptDialog();
  20. PromptDialog.prototype.initialize = function(url,width,height) {
  21. this.m_url = url;
  22. this.m_width = width;
  23. this.m_height = height;
  24. };
  25. PromptDialog.prototype.show = function() {
  26. this.m_dialogImpl = new bux.dialogs.IFrameDialog();
  27. this.m_dialogImpl.src = this.m_url;
  28. this.m_dialogImpl.width = this.m_width;
  29. this.m_dialogImpl.height = this.m_height;
  30. this.m_dialogImpl.startup();
  31. this.m_dialogImpl.show();
  32. };
  33. PromptDialog.prototype.hide = function() {
  34. this.m_dialogImpl.hide();
  35. this.m_dialogImpl.destroy();
  36. delete this.m_dialogImpl;
  37. this.m_dialogImpl = null;
  38. };