Lines Matching defs:netInfoBox

5164 },appendTab:function(netInfoBox,tabId,tabTitle){var args={tabId:tabId,tabTitle:tabTitle};
5165 this.customTab.append(args,$$(".netInfoTabs",netInfoBox)[0]);
5166 this.customBody.append(args,$$(".netInfoBodies",netInfoBox)[0])
5167 },selectTabByName:function(netInfoBox,tabName){var tab=getChildByClass(netInfoBox,"netInfoTabs","netInfo"+tabName+"Tab");
5170 var netInfoBox=getAncestorByClass(tab,"netInfoBody");
5171 var selectedTab=netInfoBox.selectedTab;
5172 if(selectedTab){removeClass(netInfoBox.selectedText,"netInfoTextSelected");
5176 selectedTab=netInfoBox.selectedTab=tab;
5177 netInfoBox.selectedText=$$("."+textBodyName,netInfoBox)[0];
5178 setClass(netInfoBox.selectedText,"netInfoTextSelected");
5182 var file=Firebug.getRepObject(netInfoBox);
5184 this.updateInfo(netInfoBox,file,context)
5185 },updateInfo:function(netInfoBox,file,context){if(FBTrace.DBG_NET){FBTrace.sysout("net.updateInfo; file",file)
5186 }if(!netInfoBox){if(FBTrace.DBG_NET||FBTrace.DBG_ERRORS){FBTrace.sysout("net.updateInfo; ERROR netInfo == null "+file.href,file)
5188 }var tab=netInfoBox.selectedTab;
5189 if(hasClass(tab,"netInfoParamsTab")){if(file.urlParams&&!netInfoBox.urlParamsPresented){netInfoBox.urlParamsPresented=true;
5190 this.insertHeaderRows(netInfoBox,file.urlParams,"Params")
5191 }}else{if(hasClass(tab,"netInfoHeadersTab")){var headersText=$$(".netInfoHeadersText",netInfoBox)[0];
5192 if(file.responseHeaders&&!netInfoBox.responseHeadersPresented){netInfoBox.responseHeadersPresented=true;
5194 }if(file.requestHeaders&&!netInfoBox.requestHeadersPresented){netInfoBox.requestHeadersPresented=true;
5196 }}else{if(hasClass(tab,"netInfoPostTab")){if(!netInfoBox.postPresented){netInfoBox.postPresented=true;
5197 var postText=$$(".netInfoPostText",netInfoBox)[0];
5199 }}else{if(hasClass(tab,"netInfoPutTab")){if(!netInfoBox.putPresented){netInfoBox.putPresented=true;
5200 var putText=$$(".netInfoPutText",netInfoBox)[0];
5202 }}else{if(hasClass(tab,"netInfoResponseTab")&&file.loaded&&!netInfoBox.responsePresented){var responseTextBox=$$(".netInfoResponseText",netInfoBox)[0];
5203 if(file.category=="image"){netInfoBox.responsePresented=true;
5204 var responseImage=netInfoBox.ownerDocument.createElement("img");
5208 }else{this.setResponseText(file,netInfoBox,responseTextBox,context)
5209 }}else{if(hasClass(tab,"netInfoCacheTab")&&file.loaded&&!netInfoBox.cachePresented){var responseTextBox=netInfoBox.getElementsByClassName("netInfoCacheText").item(0);
5210 if(file.cacheEntry){netInfoBox.cachePresented=true;
5211 this.insertHeaderRows(netInfoBox,file.cacheEntry,"Cache")
5212 }}else{if(hasClass(tab,"netInfoHtmlTab")&&file.loaded&&!netInfoBox.htmlPresented){netInfoBox.htmlPresented=true;
5214 var iframe=$$(".netInfoHtmlPreview",netInfoBox)[0];
5219 }}}}}}}dispatch(NetInfoBody.fbListeners,"updateTabBody",[netInfoBox,file,context])
5220 },setResponseText:function(file,netInfoBox,responseTextBox,context){netInfoBox.responsePresented=true;
5234 }netInfoBox.responsePresented=true;
5236 }},insertHeaderRows:function(netInfoBox,headers,tableName,rowName){if(!headers.length){return
5237 }var headersTable=$$(".netInfo"+tableName+"Table",netInfoBox)[0];
5247 var netInfoBox=getAncestorByClass(target,"netInfoBody");
5248 var file=netInfoBox.repObject;
5250 this.insertHeaderRows(netInfoBox,headers,target.rowName);
5253 this.insertSource(netInfoBox,source,target.rowName);
5257 },insertSource:function(netInfoBox,source,rowName){var tbody=$$(".netInfo"+rowName+"Body",netInfoBox)[0];
5261 },insertHeaderRows:function(netInfoBox,headers,rowName){var headersTable=$$(".netInfoHeadersTable",netInfoBox)[0];
5269 var netInfoBox=getAncestorByClass(parent,"netInfoBody");
5270 var file=netInfoBox.repObject;
5512 var netInfoBox=getChildByClass(spy.logRow,"spyHead","netInfoBody");
5513 if(!netInfoBox){var head=getChildByClass(spy.logRow,"spyHead");
5514 netInfoBox=template.tag.append({file:spy},head);
5515 dispatch(template.fbListeners,"initTabBody",[netInfoBox,spy]);
5516 template.selectTabByName(netInfoBox,"Response")
5517 }else{template.updateInfo(netInfoBox,spy,spy.context)