Overview | Index | GodLikeMouse AJAX JavaScript Framework 2.5 |
FRAMES | NO FRAMES |
GLM.AJAX.callService( serviceUrl, soapMethod, callbackFunction, param1, param2 ... paramN )
Method for calling a webservice using AJAX.
Parameters:
serviceUrl - The url of the service to call.
soapMethod - The method of the service to call.
callbackFunction - The function to call when the AJAX call succeeds.
param1, param2 ... paramN - Optional parameters passed to the webservice. Parameters must be in the form of "name=value".
Example:
var ajax = new GLM.AJAX();
function ajaxCallback(content){
alert(content); //displays the contents of the page.
}
ajax.callService("http://myserver.com/myService.asmx", "myMethod", ajaxCallback); //call myService.asmx and pass the contents to ajaxCallback.
Overview | Index | GodLikeMouse AJAX JavaScript Framework 2.5 |
FRAMES | NO FRAMES |