Now I get this strange error from IE, which is basically
'null' is null or not an object
The line number that he gives is completely disabled, so I do not attach much importance to it, but, apparently, I narrowed it down to the place where it came from.
function openSong(songlink){
$('#smallbox').slideDown();
requestCompleteSong('<tr><td>'+songlink+'</td></tr>');
}
There are no errors from IE in the above code, however, when I make an AJAX GET request using jQuery, it seems to throw this error
function openSong(songlink){
$('#smallbox').slideDown();
$.get("getSong.php?fake="+makeid(),{ id: songlink },requestCompleteSong);
}
'songlink' is definitely not null because the first function I posted works fine. Here is makeid ().
function makeid()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 5; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
Can anyone understand why IE is throwing this error?
source
share