实现ajax? [英] Realtiming ajax?

查看:83
本文介绍了实现ajax?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个asp页面,它在一个

循环中有一个响应.write(某事物)会运行相当长的时间。现在,从我的
客户端浏览器中我可以捕获那些服务器响应消息(使用ajax)

并在浏览器上打印它们吗?


(事情是asp页面仍然在服务器上运行...而

它正在运行我想要监视一些变量,这是

的一部分在服务器上运行的程序)


--detroltroll

解决方案

为了实现我认为你想要的东西,使用response.flush来显示asp页面运行时的临时值。

" deostroll" < de ******* @ gmail.com在消息新闻中写道:11 ********************** @ m37g2000prh.googlegr psps.com .. 。


假设我有一个asp页面在一个

循环中有一个响应.write(某物),它会运行相当多的时间现在,从我的
客户端浏览器中我可以捕获那些服务器响应消息(使用ajax)

并在浏览器上打印它们吗?


(事情是asp页面仍然在服务器上运行...而

它正在运行我想要监视一些变量,这是

的一部分在服务器上运行的程序)


--detroltroll





" Jon Paal [MSMD]" < Jon nospam Paal @ everywhere dot comwrote in message

news:13 ************* @ corp.supernews.com ...


为了实现我认为你想要的,在asp页面运行时使用response.flush显示



临时值。


>



这将向客户端发送内容,但客户端上的组件需要

能够在回复之前通过活动提供该内容

完成。


唯一能够做那个WinHTTP。我从来没有在脚本中连接它'

事件,看看是否可以这样做。


" deostroll" < de ******* @ gmail.comwrote in message



news:11 *************** *******@m37g2000prh.googlegr oups.com ...


假设我有一个asp页面在一个可以运行相当长时间的
循环中的response.write(something)。现在,从我的
客户端浏览器中我可以捕获那些服务器响应消息(使用ajax)

并在浏览器上打印它们吗?


(事情是asp页面仍然在服务器上运行...而

它正在运行我想要监视一些变量,这是

的一部分在服务器上运行的程序)


--detroltroll




你无法从客户端检查ASP脚本的进度。

" Anthony Jones" < An*@yadayadayada.com在留言新闻中写道:Oy ************* @ TK2MSFTNGP06.phx.gbl ...


>

" Jon Paal [MSMD]" < Jon nospam Paal @ everywhere dot comwrote in message

news:13 ************* @ corp.supernews.com ...


>为了实现我认为你想要的,使用response.flush来显示



的临时值,而asp页面是运行。


>>



这会将内容发送到客户端但是上面的组件客户端需要

能够在响应完成之前通过事件提供该内容

完成。


唯一的组件那可以做到WinHTTP。我从来没有用脚本连接它'

事件,看看是否可以这样做。


>" deostroll" < de ******* @ gmail.comwrote in message



news:11 *************** *******@m37g2000prh.googlegr oups.com ...


假设我有一个asp页面在一个可以运行相当长时间的
循环中的response.write(something)。现在,从我的
客户端浏览器中我可以捕获那些服务器响应消息(使用ajax)

并在浏览器上打印它们吗?


(事情是asp页面仍然在服务器上运行...而

它正在运行我想要监视一些变量,这是

的一部分$)服务器上运行的程br />


Suppose I have an asp page that has a response.write(something) in a
loop that would run for a considerable amount of time. Now, from my
client browser can I trap those server response messages (using ajax)
and print them on the browser?

(The thing is the asp page is still running over at the server...while
it is running I would want to monitor some variables that is part of
the program that is running over at the server)

--deostroll

解决方案

To achieve what I think you are wanting , use response.flush to show interim values while the asp page is running.
"deostroll" <de*******@gmail.comwrote in message news:11**********************@m37g2000prh.googlegr oups.com...

Suppose I have an asp page that has a response.write(something) in a
loop that would run for a considerable amount of time. Now, from my
client browser can I trap those server response messages (using ajax)
and print them on the browser?

(The thing is the asp page is still running over at the server...while
it is running I would want to monitor some variables that is part of
the program that is running over at the server)

--deostroll




"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13*************@corp.supernews.com...

To achieve what I think you are wanting , use response.flush to show

interim values while the asp page is running.

>

That''ll send content to the client but the component on the client end needs
to be able to deliver that content via an event before the response is
complete.

The only component that can do that WinHTTP. I''ve never wired up it''s
events in script to see if that can be done.

"deostroll" <de*******@gmail.comwrote in message

news:11**********************@m37g2000prh.googlegr oups.com...

Suppose I have an asp page that has a response.write(something) in a
loop that would run for a considerable amount of time. Now, from my
client browser can I trap those server response messages (using ajax)
and print them on the browser?

(The thing is the asp page is still running over at the server...while
it is running I would want to monitor some variables that is part of
the program that is running over at the server)

--deostroll




You can''t check the progress of an ASP script from the client side.
"Anthony Jones" <An*@yadayadayada.comwrote in message news:Oy*************@TK2MSFTNGP06.phx.gbl...

>
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13*************@corp.supernews.com...

>To achieve what I think you are wanting , use response.flush to show

interim values while the asp page is running.

>>


That''ll send content to the client but the component on the client end needs
to be able to deliver that content via an event before the response is
complete.

The only component that can do that WinHTTP. I''ve never wired up it''s
events in script to see if that can be done.

>"deostroll" <de*******@gmail.comwrote in message

news:11**********************@m37g2000prh.googlegr oups.com...

Suppose I have an asp page that has a response.write(something) in a
loop that would run for a considerable amount of time. Now, from my
client browser can I trap those server response messages (using ajax)
and print them on the browser?

(The thing is the asp page is still running over at the server...while
it is running I would want to monitor some variables that is part of
the program that is running over at the server)

--deostroll





这篇关于实现ajax?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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