Overview | IndexGodLikeMouse AJAX JavaScript Framework 2.5
FRAMES | NO FRAMES

GLM.AJAX.callPage( url, callbackFunction, method, args, async )

GLM.AJAX.callPage( url, callbackFunction, method, args, async )

Method for calling a page using AJAX.

Parameters:

url - The url of the page to call.

callbackFunction - The function to call when the AJAX call succeeds.

method - (Optional) supports GET or POST, default is GET

args - (Optional) POST arguments.

async - (Optional) Specify synchronous/asynchronous mode, default is true.

Example:

var ajax = new GLM.AJAX();

function ajaxCallback(content){
        alert(content); //displays the contents of the page.
}

ajax.callPage("myPage.html", ajaxCallback); //call myPage.html and pass the contents to ajaxCallback.



Overview | IndexGodLikeMouse AJAX JavaScript Framework 2.5
FRAMES | NO FRAMES