同时页面加载和Ajax调用 [英] simultaneous page load and ajax call

查看:79
本文介绍了同时页面加载和Ajax调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Web应用程序,其中某些页面的加载时间很长,这是因为它们必须在后面的代码中执行操作.我想通过显示进程的不同状态来显示发生了什么事.

我正在考虑递归地(通过ajax)调用一个在会话中准备好值的页面.该值由需要花费时间加载的页面设置.问题是在其他页面加载完成时,不执行由ajax调用的页面.有什么方法可以做到吗?

感谢advance

Hi,

I have a web application with some pages take quite a long time to load because of what they have to do in code behind. I would like to show what is going on to the user by showing the different status of the process.

I was thinking about calling recursively (by ajax) a page which ready a value in the session. This value is set by the page that take time to load. The problem is that the page called by ajax is not executed while the other page load is finished. Is there some way to do that?

Thanks advance

推荐答案

希望您看到打开方法
Would like you to see the third parameter of the open method Click Here you can give the third parameter as true


这篇关于同时页面加载和Ajax调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆