View Single Post
Old 04-03-2007, 11:16 PM   PM User | #11
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
Ok, I'm an idiot. I just noticed a problem. You weren't calling http.send(null); in your showComments() function.

Code:
function showComments()
{
  var http = createRequestObject(); 
  var url = 'callcomment.php';
  http.open("GET", url, false);
  http.send(null);
  alert("status = '" + http.status + "'");
  alert("response = '" + http.responseText + "'");
  var response = http.responseText;
  document.getElementById('existing_comments').innerHTML = response;
}
david_kw
david_kw is offline   Reply With Quote