First of all, Ajax.xhr is false. I looks like your init function is never called. Running Ajax.init(); fixes this. Secondly, the following code makes no sense:
Code:
Ajax.displayResponse = function() {
Core.emptyElement(panel);
function(panel) {
panel.innerHTML = Ajax.response;
}
Ajax.fadeIn(panel);
}
Change it to:
Code:
Ajax.displayResponse = function() {
Core.emptyElement(panel);
panel.innerHTML = Ajax.response;
Ajax.fadeIn(panel);
}
In the first case, you're declaring an anonymous function, but never assigning it to anywhere, and never calling it.
Bookmarks