{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 'executeRequest(webRequest)'
Method: executeRequest(webRequest)
Method Full Name:     Sys$Net$_WebRequestManager$executeRequest(webRequest)
Class: _WebRequestManager
Namespace: Sys.Net
Source File: MicrosoftAjax.debug.js
1   function Sys$Net$_WebRequestManager$executeRequest(webRequest) {
2     /// <summary locid="M:J#Sys.Net._WebRequestManager.executeRequest" />
3     /// <param name="webRequest" type="Sys.Net.WebRequest"></param>
4     var e = Function._validateParams(arguments, [
5     {name: "webRequest", type: Sys.Net.WebRequest}
6     ]);
7     if (e) throw e;
8     var executor = webRequest.get_executor();
9     if (!executor) {
10      var failed = false;
11      try {
12        var executorType = eval(this._defaultExecutorType);
13        executor = new executorType();
14        } catch (e) {
15        failed = true;
16      }
17      if (failed || !Sys.Net.WebRequestExecutor.isInstanceOfType(executor) || !executor) {
18        throw Error.argument("defaultExecutorType", String.format(Sys.Res.invalidExecutorType, this._defaultExecutorType));
19      }
20      webRequest.set_executor(executor);
21    }
22    if (executor.get_aborted()) {
23      return;
24    }
25    var evArgs = new Sys.Net.NetworkRequestEventArgs(webRequest);
26    var handler = this._get_eventHandlerList().getHandler("invokingRequest");
27    if (handler) {
28      handler(this, evArgs);
29    }
30    if (!evArgs.get_cancel()) {
31      executor.executeRequest();
32    }
33  }
This is the JavaScript source for method executeRequest(webRequest) from ASP.NET AJAX Library. Full name for this method is Sys$Net$_WebRequestManager$executeRequest(webRequest). It belongs to the class _WebRequestManager, which is in Sys.Net namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map