the responseText is empty in Firefox ,but ok in InternetExplorer i also log the response before returning to the client so i see my response there
this is my request , i added a setTimeout but this also not helping can someone help me please ,
thank you
var ajaxUrl = "./ajaxHandlers/ajax-handler.php";
var myAjax = new Ajax.Request(
ajaxUrl,
{
method: 'post',
parameters: params,
onComplete: function(response)
{
setTimeout(handleResponse(response,callback) ,5000);
}
});
function handleResponse(response,callback)
{
alert(response.responseText);
try
{
eval("var r = " + response.responseText);
}
catch (e)
{
alert("EXCEPTION = " + e.constructor);
showError("error evaluating response : Response text:<br/>" + response.responseText);
var r = new Object();
r.message = 'Error evaluating response';
r.status = 'error';
if (typeof callback == 'function') callback(r);
return;
}
}