Ajax Long Polling
问题 I recently asked a question on StackOverflow about a function of mine and people recommended that I use Ajax Long Polling. I have spent the past couple of days researching the subject and have tried to write basic long polling code, but none of it has worked and I can not get anything I do to work at all. Here is my basic function: <script language='javascript' type='text/javascript'> var interval=self.setInterval("checkformessages()",4000) function checkformessages() { $('#incomingmessages<