View Single Post
Old 04-03-2007, 11:14 PM   PM User | #10
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
Hmm, not a good sign. :)

So are you getting a javascript error?

I wonder if the problem is you are calling to set up another http request while you are still in a handler for another one. I don't see why it would be a problem, but maybe.

how about changing the post handler again to this.

Code:
http.onreadystatechange = function() {//Call a function when the state changes.
  if (http.readyState == 4) {
    if (http.status == 200) {
      setTimeout(showComments, 0);
    }
  }
}
Basically what that does is immediately generate an event to call showComments() when all other current events are handled.

What browser are you testing in again?

david_kw
david_kw is offline   Reply With Quote