{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 '_onLoginComplete(result, context, methodName)'
Method: _onLoginComplete(result, context, methodName)
Method Full Name:     Sys$Services$_AuthenticationService$_onLoginComplete(result, context, methodName)
Class: _AuthenticationService
Namespace: Sys.Services
Source File: MicrosoftAjax.debug.js
1   function Sys$Services$_AuthenticationService$_onLoginComplete(result, context, methodName) {
2     if(typeof(result) !== "boolean") {
3       throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType, methodName, "Boolean"));
4     }
5     
6     var redirectUrl = context[4];
7     var userContext = context[7] || this.get_defaultUserContext();
8     var callback = context[5] || this.get_defaultLoginCompletedCallback() || this.get_defaultSucceededCallback();
9     
10    if(result) {
11      this._authenticated = true;
12      if (callback) {
13        callback(true, userContext, "Sys.Services.AuthenticationService.login");
14      }
15      
16      if (typeof(redirectUrl) !== "undefined" && redirectUrl !== null) {
17        window.location.href = redirectUrl;
18      }
19    }
20    else if (callback) {
21      callback(false, userContext, "Sys.Services.AuthenticationService.login");
22    }
23  }
This is the JavaScript source for method _onLoginComplete(result, context, methodName) from ASP.NET AJAX Library. Full name for this method is Sys$Services$_AuthenticationService$_onLoginComplete(result, context, methodName). It belongs to the class _AuthenticationService, which is in Sys.Services namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map