Hi,
I have these functions :

Code:
function loadAjax(ajaxTrigger,triggerAction,ajaxLoadingContentSource,ajaxLoadingContainerId) {
    var trigger = document.getElementById(ajaxTrigger);
    trigger.addEventListener(triggerAction, sendAjaxRequest(null,ajaxLoadingContentSource,ajaxLoadingContainerId), false);
}

function sendAjaxRequest(ev,ajaxLoadingContentSource,ajaxLoadingContainerId) {
    var request = new XMLHttpRequest();
    request.open("GET", ajaxLoadingContentSource, true);
    request.onreadystatechange = ready(null,ajaxLoadingContainerId);
    request.send(null);
}

function ready(ev,ajaxLoadingContainerId) {
    var r = ev.target;
    if (r.readyState != 4) return;
    var div = document.getElementById(ajaxLoadingContainerId);
    div.innerHTML = r.responseText;
}
It is supposed to load data content from a distant page..

But it is not working , can you please look at it and tell me where the problem is ?

thank you very much for your answers ,

Ondra