Type.registerNamespace('MPLS.WebApp.Portal'); MPLS.WebApp.Portal.Login=function() { MPLS.WebApp.Portal.Login.initializeBase(this); this._timeout = 0; this._userContext = null; this._succeeded = null; this._failed = null; } MPLS.WebApp.Portal.Login.prototype={ _get_path:function() { var p = this.get_path(); if (p) return p; else return MPLS.WebApp.Portal.Login._staticInstance.get_path();}, DoLogin:function(id,pwd,redirectToURL,fieldToAuthenticate,reqAP,qs,captchaCode,captchaValue,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'DoLogin',false,{id:id,pwd:pwd,redirectToURL:redirectToURL,fieldToAuthenticate:fieldToAuthenticate,reqAP:reqAP,qs:qs,captchaCode:captchaCode,captchaValue:captchaValue},succeededCallback,failedCallback,userContext); }, ForgotPwd:function(id,field,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'ForgotPwd',false,{id:id,field:field},succeededCallback,failedCallback,userContext); }} MPLS.WebApp.Portal.Login.registerClass('MPLS.WebApp.Portal.Login',Sys.Net.WebServiceProxy); MPLS.WebApp.Portal.Login._staticInstance = new MPLS.WebApp.Portal.Login(); MPLS.WebApp.Portal.Login.set_path = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_path(value); } MPLS.WebApp.Portal.Login.get_path = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_path(); } MPLS.WebApp.Portal.Login.set_timeout = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_timeout(value); } MPLS.WebApp.Portal.Login.get_timeout = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_timeout(); } MPLS.WebApp.Portal.Login.set_defaultUserContext = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_defaultUserContext(value); } MPLS.WebApp.Portal.Login.get_defaultUserContext = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_defaultUserContext(); } MPLS.WebApp.Portal.Login.set_defaultSucceededCallback = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_defaultSucceededCallback(value); } MPLS.WebApp.Portal.Login.get_defaultSucceededCallback = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_defaultSucceededCallback(); } MPLS.WebApp.Portal.Login.set_defaultFailedCallback = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_defaultFailedCallback(value); } MPLS.WebApp.Portal.Login.get_defaultFailedCallback = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_defaultFailedCallback(); } MPLS.WebApp.Portal.Login.set_enableJsonp = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_enableJsonp(value); } MPLS.WebApp.Portal.Login.get_enableJsonp = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_enableJsonp(); } MPLS.WebApp.Portal.Login.set_jsonpCallbackParameter = function(value) { MPLS.WebApp.Portal.Login._staticInstance.set_jsonpCallbackParameter(value); } MPLS.WebApp.Portal.Login.get_jsonpCallbackParameter = function() { return MPLS.WebApp.Portal.Login._staticInstance.get_jsonpCallbackParameter(); } MPLS.WebApp.Portal.Login.set_path("/Performa/Web/Portal/Login.asmx"); MPLS.WebApp.Portal.Login.DoLogin= function(id,pwd,redirectToURL,fieldToAuthenticate,reqAP,qs,captchaCode,captchaValue,onSuccess,onFailed,userContext) {MPLS.WebApp.Portal.Login._staticInstance.DoLogin(id,pwd,redirectToURL,fieldToAuthenticate,reqAP,qs,captchaCode,captchaValue,onSuccess,onFailed,userContext); } MPLS.WebApp.Portal.Login.ForgotPwd= function(id,field,onSuccess,onFailed,userContext) {MPLS.WebApp.Portal.Login._staticInstance.ForgotPwd(id,field,onSuccess,onFailed,userContext); }