Overview | IndexGodLikeMouse AJAX JavaScript Framework 2.5
FRAMES | NO FRAMES

GLM.AJAX.onError()

GLM.AJAX.onError()

Method for handling ajax errors.

Example:

var ajax = new GLM.AJAX();

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

function ajaxError(error){
        alert(error); //alert the error
}

ajax.onErrror = ajaxError; //assign error handler
ajax.callPage("myPage.html", ajaxCallback); //call myPage.html and pass the contents to ajaxCallback



Overview | IndexGodLikeMouse AJAX JavaScript Framework 2.5
FRAMES | NO FRAMES