{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'get_xml()'
Method: get_xml()
Method Full Name:     Sys$Net$XMLHttpExecutor$get_xml()
Class: XMLHttpExecutor
Namespace: Sys.Net
Source File: MicrosoftAjax.debug.js
1   function Sys$Net$XMLHttpExecutor$get_xml() {
2     /// <value locid="P:J#Sys.Net.XMLHttpExecutor.xml"></value>
3     if (arguments.length !== 0) throw Error.parameterCount();
4     if (!this._responseAvailable) {
5       throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_xml'));
6     }
7     if (!this._xmlHttpRequest) {
8       throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_xml'));
9     }
10    var xml = this._xmlHttpRequest.responseXML;
11    if (!xml || !xml.documentElement) {
12      xml = Sys.Net.XMLDOM(this._xmlHttpRequest.responseText);
13      if (!xml || !xml.documentElement)
14      return null;
15    }
16    else if (navigator.userAgent.indexOf('MSIE') !== -1) {
17      xml.setProperty('SelectionLanguage', 'XPath');
18    }
19    if (xml.documentElement.namespaceURI === "http://www.mozilla.org/newlayout/xml/parsererror.xml" &&
20    xml.documentElement.tagName === "parsererror") {
21      return null;
22    }
23    
24    if (xml.documentElement.firstChild && xml.documentElement.firstChild.tagName === "parsererror") {
25      return null;
26    }
27    
28    return xml;
29  }
This is the JavaScript source for method get_xml() from ASP.NET AJAX Library. Full name for this method is Sys$Net$XMLHttpExecutor$get_xml(). It belongs to the class XMLHttpExecutor, which is in Sys.Net namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map