i want to get json array return from http://graph.facebook.com/1mahalkita
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "http://graph.facebook.com/1mahalkita", true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
alert(xmlhttp.responseText);
}
}
xmlhttp.send();
this code should work but i'm getting error when i execute this code in firefox console
error
[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 2" data: no]
how can i fix this ? this is screenhot
_________________________update____________________________________________________
actually code works on outher browser tab consoles .it only doesn't work when i execute from facebook tab.since i'm using this code with some other codes i have to use console on fb page code should execute in