Does PHP flush work with jQuerys ajax?

前端 未结 2 924
逝去的感伤
逝去的感伤 2020-12-21 15:46

I have created a page in which I use the PHP function flush(), to output data to the browser the second the data is echoed. I\'m also calling this page using jQuery\'s ajax

相关标签:
2条回答
  • Here you have 2 plugins for streaming:

    JQUERY AJAX HTTP STREAM and JSTREAMPLUG.

    http://plugins.jquery.com/taxonomy/term/1840

    "This plugin allows for a constant connection with a server keeping content continuously updated with the latest content using one http request. It extends the $.ajax, $.get, and $.post functions to allow for streaming."

    0 讨论(0)
  • 2020-12-21 16:20

    jQuery needs to wait for the connection to close before it can insert the html onto the page -- it can't display it progressively (it wouldn't make any sense).

    0 讨论(0)
提交回复
热议问题