View Single Post
Old 04-03-2007, 05:36 PM   PM User | #6
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
Try this in your handler to see if the browser is getting any return and what kind.

Code:
http.onreadystatechange = function() {//Call a function when the state changes.
  if (http.readyState == 4) {
    alert("status = '" + http.status + "'");
    alert("response = '" + http.responseText + "'");
    if (http.status == 200) {
      showComments();
    }
  }
}
That should find out if the problem is in the post or the get portion of the code.

david_kw
david_kw is offline   Reply With Quote