I have the following code in my page. I am expecting a series of json objects to get returned from the person_output.aspx page, which it does successfully. However, when it comes to outputting the content, I receive an error.
$.getJSON("ajax/person_output.aspx", { 'uID': 1 }, function(data) {
$.each(data.items, function(i, item) {
$("<span/>").html(item.first_name).appendTo("#content");
});
});
ajax/person_output.aspx produces the following json (this is only for one record..)
{
"l_id": "49",
"u_id": "1",
"first_name": "john",
"last_name": "doe",
"title" : "General Manager",
"color" : "333"
}
firebug produces the following error;
G is undefined
init()()jquery-1....2.min.js (line 12)
(?)()()URLINX5 (line 99)
I()jquery-1....2.min.js (line 19)
F()()jquery-1....2.min.js (line 19)
[Break on this error] (function(){var l=this,g,y=l.jQuery,p=l.....each(function(){o.dequeue(this,E)})}});