hello i was using my long polling code from a long time it was working fine with jquery verison 1.8 but since i upgraded it to verison 1.8.1 it stopped working and its giving me the error
Error: NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript
argument arg 0 [nsIDOMWindow.getComputedStyle]
this is my code
(function pollfrnd() { setTimeout(function() {
var demon=$('.frndnotimore').val();
var page="notirequest";
var a=$('.gvpgvpxgvp').val();
$.ajax({ url: 'modules/notifications/beast.php?nid='+demon+'&id='+a+'&page='+page,
success: function(html) {
if ($.trim(html) == 'no')
{
}
else
{
$('.frndnotimore').remove();
$('.notiloadfriend').prepend($(html).fadeIn('slow'));
counter(a,page);
}
}, dataType: "html", complete: pollfrnd }); }, 60000); })();
});
When I run your code exactly as below, I get no error at all actually(jquery 1.7.2 AND jquery 1.8.1 AND EVEN Firefox 14) and it even tries to poll something: