123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- if(!dojo._hasResource["dojox.layout.ContentPane"]){
- dojo._hasResource["dojox.layout.ContentPane"] = true;
- dojo.provide("dojox.layout.ContentPane");
- dojo.require("dijit.layout.ContentPane");
- dojo.require("dojox.html._base");
- dojo.declare("dojox.layout.ContentPane", dijit.layout.ContentPane, {
-
-
-
-
-
-
-
-
-
-
-
-
- adjustPaths: false,
-
-
-
-
-
-
-
-
-
- cleanContent: false,
-
-
- renderStyles: false,
-
-
- executeScripts: true,
-
-
-
- scriptHasHooks: false,
-
- constructor: function(){
-
- this.ioArgs = {};
- this.ioMethod = dojo.xhrGet;
- },
- onExecError: function(e){
-
-
-
-
- },
- _setContent: function(cont){
-
-
- var setter = this._contentSetter;
- if(! (setter && setter instanceof dojox.html._ContentSetter)) {
- setter = this._contentSetter = new dojox.html._ContentSetter({
- node: this.containerNode,
- _onError: dojo.hitch(this, this._onError),
- onContentError: dojo.hitch(this, function(e){
-
-
- var errMess = this.onContentError(e);
- try{
- this.containerNode.innerHTML = errMess;
- }catch(e){
- console.error('Fatal '+this.id+' could not change content due to '+e.message, e);
- }
- })
- });
- };
-
- this._contentSetterParams = {
- adjustPaths: Boolean(this.adjustPaths && (this.href||this.referencePath)),
- referencePath: this.href || this.referencePath,
- renderStyles: this.renderStyles,
- executeScripts: this.executeScripts,
- scriptHasHooks: this.scriptHasHooks,
- scriptHookReplacement: "dijit.byId('"+this.id+"')"
- };
- this.inherited("_setContent", arguments);
- }
-
- });
- }
|