// CallWebServiceMethods.js
 
// This function calls the Web service method and 
// passes the event callback function.  
function GetUser(PortalID,UserID,Username,Password,ModuleID,WebPageCall,Encrypted)
{
    DotNetNuke.Modules.IWeb.WebService.GetUser(PortalID,UserID,Username,Password,ModuleID,WebPageCall,Encrypted,SucceededCallback);
}
 
// This is the callback function invoked if the Web service
// succeeded.
// It accepts the result object as a parameter.
function SucceededCallback(result, eventArgs)
{
    // Page element to display feedback.
    var RsltElem = document.getElementById("ResultId");
    RsltElem.innerHTML = result;
}
 
//every external Javascript file that is being referenced from ScriptManager must have a call to Sys.Application.
if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();