Iframe.js 575 B

1234567891011121314151617181920212223
  1. MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
  2. MWF.xApplication.process.Xform.Iframe = MWF.APPIframe = new Class({
  3. Extends: MWF.APP$Module,
  4. _loadUserInterface: function(){
  5. this.node.empty();
  6. var src = this.json.src;
  7. if (this.json.valueType=="script"){
  8. src = this.form.Macro.exec(this.json.script.code, this);
  9. }
  10. this.iframe = new Element("iframe", {
  11. "src": src
  12. }).inject(this.node, "after");
  13. this.node.destroy();
  14. this.node = this.iframe.setStyles({
  15. "width": "100%",
  16. "border": "0"
  17. });
  18. }
  19. });