This is my code. It works perfectly with Chrome but when I launch it Firefox it only works at the very first call. When I try to pass data for the second time I get this error:
"attempt to run compile-and-go script on a cleared scope".
I guess that the problem is in the function call in the "success" parameter, but I cannot understand what's wrong.
Thank you in advance for your help.
$.noConflict();
jQuery(document).ready(function(){
in_poll();
});
function in_poll()
{
jQuery.ajax(
{
url: "prova.php",
cache: false,
dataType: "json",
success: function(data)
{
.... OUTPUT DATA RETRIEVED....
in_poll();
},
error: function (xhr, ajaxOptions, thrownError)
{
alert(thrownError);
setTimeout('in_poll()', 5000);//Try againg after 5 seconds
},
timeout: 25000
});
}