Código HTML:
if (receiveReq.readyState == 4) { var chat_div = document.getElementById('div_chat'); var response = eval("(" + receiveReq.responseText + ")"); for(i=0; i < response.messages.message.length; i++) { chat_div.innerHTML += response.messages.message[i].user; chat_div.innerHTML += ' <font class="chat_time">' + response.messages.message[i].time + '</font><br />'; chat_div.innerHTML += response.messages.message[i].text + '<br />'; chat_div.scrollTop = chat_div.scrollHeight; lastMessage = response.messages.message[i].id; } }
messages.message[..].user is null or not an object';
Que estoy haciendo mal??
espero que alguien pueda ayudarme