使用Ajax刷新ob_flush

Ok so I have created a wizard and everything works great. But I have one little piece that seems to 'bother' me if you will.

In the last step of the wizard I build, it uses obflush to process data onto the screen to show some actions happening. But the problem with that is, that the 'entire' page doesn't load until the obflush process is done, and then the page all lines up nicely and such.

Im wondering if there is such a way that maybe ajax can flush the obflush process?

Maybe this is completely wrong but this is how I can envision it happening.

User goes thru the wizard and gets to the final page The entire page loads At the end of the page is some ajax code to apply to a tag maybe The ajax is refreshing itself every second to check against the update of the obflush and then outputting what the obflush has outputted to the screen.

Does that make sense?

Any insight is greatly appreciated.

Thanks

查看全部
weixin_33712987
weixin_33712987
2012/05/07 22:00
  • php
  • ajax
  • 点赞
  • 收藏
  • 回答
    私信

1个回复