Hi there
I am trying to append my JSON data to a div. For some reason I am not seeing, it does not append. The data is collected correctly from Django view, I can see this is the FireBug console.
Here is my JS
$.getJSON('/chat/xhr_test/', function(response_array) {
var arr = response_array;
$.each(arr, function(count, item) {
var messageList = (this.pk + ' ' +this.nickname +': '+ this.message +'<br>');
$("#chatbox").append(messageList);
});
});