JavaScript bug
-
You forget to add ‘;’ after the function onreadystatechange() which leads to IE/minify bugs (see last line, should be ; at the end):
xhr.onreadystatechange = function() { if ( 4 == xhr.readyState && 200 == xhr.status ) { if ( window.console && window.console.log ) { window.console.log( xhr.responseText ); } } }
Correct:
xhr.onreadystatechange = function() { if ( 4 == xhr.readyState && 200 == xhr.status ) { if ( window.console && window.console.log ) { window.console.log( xhr.responseText ); } } };
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘JavaScript bug’ is closed to new replies.