{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 '_scriptIncludesLoadComplete()'
Method: _scriptIncludesLoadComplete()
Method Full Name:     Sys$WebForms$PageRequestManager$_scriptIncludesLoadComplete()
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_scriptIncludesLoadComplete() {
2     var ctx = this._updateContext;
3     for (i = 0; i < ctx.updatePanelNodes.length; i++) {
4       var deltaUpdatePanel = ctx.updatePanelNodes[i];
5       var deltaPanelID = deltaUpdatePanel.id;
6       var deltaPanelRendering = deltaUpdatePanel.content;
7       var updatePanelElement = document.getElementById(deltaPanelID);
8       if (!updatePanelElement) {
9         this._endPostBack(Error.invalidOperation(String.format(Sys.WebForms.Res.PRM_MissingPanel, deltaPanelID)), ctx.response);
10        return;
11      }
12      this._updatePanel(updatePanelElement, deltaPanelRendering);
13    }
14    for (i = 0; i < ctx.scriptDisposeNodes.length; i++) {
15      var disposePanelId = ctx.scriptDisposeNodes[i].id;
16      var disposeScript = ctx.scriptDisposeNodes[i].content;
17      this._registerDisposeScript(disposePanelId, disposeScript);
18    }
19    var viewStateEncrypted = false;
20    for (i = 0; i < ctx.hiddenFieldNodes.length; i++) {
21      var id = ctx.hiddenFieldNodes[i].id;
22      var value = ctx.hiddenFieldNodes[i].content;
23      
24      if (id === "__VIEWSTATEENCRYPTED") {
25        viewStateEncrypted = true;
26      }
27      var hiddenFieldElement = document.getElementById(id);
28      if (!hiddenFieldElement) {
29        hiddenFieldElement = document.createElement('input');
30        hiddenFieldElement.id = id;
31        hiddenFieldElement.name = id;
32        hiddenFieldElement.type = 'hidden';
33        this._form.appendChild(hiddenFieldElement);
34      }
35      hiddenFieldElement.value = value;
36    }
37    
38    if (!viewStateEncrypted) {
39      var viewStateEncryptedField = document.getElementById("__VIEWSTATEENCRYPTED");
40      if (viewStateEncryptedField) {
41        viewStateEncryptedField.parentNode.removeChild(viewStateEncryptedField);
42      }
43    }
44    if (ctx.scriptsFailed) {
45      throw Sys._ScriptLoader._errorScriptLoadFailed(ctx.scriptsFailed.src, ctx.scriptsFailed.multipleCallbacks);
46    }
47    
48    var scriptLoader = Sys._ScriptLoader.getInstance();
49    
50    this._queueScripts(scriptLoader, ctx.scriptBlockNodes, false, true);
51    var arrayScript = '';
52    for (i = 0; i < ctx.arrayDeclarationNodes.length; i++) {
53      arrayScript += "Sys.WebForms.PageRequestManager._addArrayElement('" + ctx.arrayDeclarationNodes[i].id + "', " + ctx.arrayDeclarationNodes[i].content + ");\r\n";
54    }
55    var expandoScript = '';
56    for (i = 0; i < ctx.expandoNodes.length; i++) {
57      var propertyReference = ctx.expandoNodes[i].id;
58      var propertyValue = ctx.expandoNodes[i].content;
59      expandoScript += propertyReference + " = " + propertyValue + "\r\n";
60    }
61    if (arrayScript.length) {
62      scriptLoader.queueScriptBlock(arrayScript);
63    }
64    if (expandoScript.length) {
65      scriptLoader.queueScriptBlock(expandoScript);
66    }
67    
68    this._queueScripts(scriptLoader, ctx.scriptStartupNodes, true, true);
69    var onSubmitStatementScript = '';
70    for (var i = 0; i < ctx.onSubmitNodes.length; i++) {
71      if (i === 0) {
72        onSubmitStatementScript = 'Array.add(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements, function() {\r\n';
73        }
74        onSubmitStatementScript += ctx.onSubmitNodes[i].content + "\r\n";
75      }
76      if (onSubmitStatementScript.length) {
77        onSubmitStatementScript += "\r\nreturn true;\r\n});\r\n";
78      scriptLoader.queueScriptBlock(onSubmitStatementScript);
79    }
80    scriptLoader.loadScripts(0, Function.createDelegate(this, this._scriptsLoadComplete), null, null);
81  }
This is the JavaScript source for method _scriptIncludesLoadComplete() from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_scriptIncludesLoadComplete(). It belongs to the class PageRequestManager, which is in Sys.WebForms namespace. This source is in MicrosoftAjaxWebForms.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map