473,698 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Realtiming ajax?

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

Jun 26 '07 #1
16 2036
To achieve what I think you are wanting , use response.flush to show interim values while the asp page is running.
"deostroll" <de*******@gmai l.comwrote in message news:11******** **************@ m37g2000prh.goo glegroups.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

Jun 26 '07 #2

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13******** *****@corp.supe rnews.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*******@gmai l.comwrote in message
news:11******** **************@ m37g2000prh.goo glegroups.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


Jun 26 '07 #3
You can't check the progress of an ASP script from the client side.
"Anthony Jones" <An*@yadayadaya da.comwrote in message news:Oy******** *****@TK2MSFTNG P06.phx.gbl...
>
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13******** *****@corp.supe rnews.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*******@gmai l.comwrote in message
news:11******** **************@ m37g2000prh.goo glegroups.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



Jun 27 '07 #4
i think
you can use a session variable: session("proges s")= 0
wich your "process.as p" can increase whenever you want
thus, you can retrieve it with ajax
invoking another page like "getprogress.as p"

"deostroll" <de*******@gmai l.comescribió en el mensaje
news:11******** **************@ m37g2000prh.goo glegroups.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

Jun 27 '07 #5

"keyser soze" <ba*********@ho tmail.comwrote in message
news:Od******** ******@TK2MSFTN GP06.phx.gbl...
i think
you can use a session variable: session("proges s")= 0
wich your "process.as p" can increase whenever you want
thus, you can retrieve it with ajax
invoking another page like "getprogress.as p"

You can't use the session object in this way since it is single threaded.
You can't have a long running thread updating the session object and have
another thread read it. The request to getprogress.asp will queue until the
long running thread has completed.

It may be possible to use the application object or a DB to do the same
thing though.

>

"deostroll" <de*******@gmai l.comescribió en el mensaje
news:11******** **************@ m37g2000prh.goo glegroups.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


Jun 28 '07 #6

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13******** *****@corp.supe rnews.com...
You can't check the progress of an ASP script from the client side.
Not quite sure I understand you. Did you not suggest using Response.Flush
to send some content to the client before the ASP script is completed?

>
"Anthony Jones" <An*@yadayadaya da.comwrote in message
news:Oy******** *****@TK2MSFTNG P06.phx.gbl...

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in
message
news:13******** *****@corp.supe rnews.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*******@gmai l.comwrote in message
news:11******** **************@ m37g2000prh.goo glegroups.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




Jun 28 '07 #7
or writting/reading a file, i guess
named as [user_id].txt
(he will need to deal with the txt garbage, of course)

"Anthony Jones" <An*@yadayadaya da.comescribió en el mensaje
news:O6******** ******@TK2MSFTN GP02.phx.gbl...
>
"keyser soze" <ba*********@ho tmail.comwrote in message
news:Od******** ******@TK2MSFTN GP06.phx.gbl...
i think
you can use a session variable: session("proges s")= 0
wich your "process.as p" can increase whenever you want
thus, you can retrieve it with ajax
invoking another page like "getprogress.as p"


You can't use the session object in this way since it is single threaded.
You can't have a long running thread updating the session object and have
another thread read it. The request to getprogress.asp will queue until
the
long running thread has completed.

It may be possible to use the application object or a DB to do the same
thing though.



"deostroll" <de*******@gmai l.comescribió en el mensaje
news:11******** **************@ m37g2000prh.goo glegroups.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
>


Jun 28 '07 #8
ASP can send info to the client but the client can't look back into the progress of the ASP in process
"Anthony Jones" <An*@yadayadaya da.comwrote in message news:ue******** ******@TK2MSFTN GP02.phx.gbl...
>
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13******** *****@corp.supe rnews.com...
>You can't check the progress of an ASP script from the client side.

Not quite sure I understand you. Did you not suggest using Response.Flush
to send some content to the client before the ASP script is completed?

>>
"Anthony Jones" <An*@yadayadaya da.comwrote in message
news:Oy******** *****@TK2MSFTNG P06.phx.gbl...
>
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in
message
news:13******** *****@corp.supe rnews.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*******@gmai l.comwrote in message
news:11******** **************@ m37g2000prh.goo glegroups.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





Jun 28 '07 #9
Jon Paal said:
>You can't check the progress of an ASP script from the client side.
I have tried using response.flush, it does not work.

Technically my requirement does not deal with checking the progress of
the asp script. Rather I want to monitor some variables at runtime.

--deostroll

Jun 28 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2337
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
4319
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but from within an inline function. Within the AJAX object: this.xmlhttp = new XMLHttpRequest(); this.response = ''; //to contain the response text OR xml var that = this; //since we cannot reference this within the
0
1842
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
0
1834
by: melledge | last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference Industry experts offer insight into next generation of the Web ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the rapidly developing world of Ajax user interfaces on the browser, IDEAlliance (www.idealliance.org) announced today that its annual XTech Conference will kick off on May 16 with Ajax Developers' Day. XTech 2006 (www.xtech-conference.org), to be held May...
1
16503
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX - microlink pattern tutorial : A microlink is a link that opens up
10
3055
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's another to really see how great something is.) Thanks -- Share The Knowledge. I need all the help I can get and so do you!
2
2256
by: soni2926 | last post by:
hi, does anyone know of any good books on ajax and asp.net, one that teaches ajax itself before jumping in atlas? I wanted to get an understanding of ajax and how to use it, most books i've seen on .net and ajax seem to jump into atlas right away, does anyone know of any that teach ajax itself and then later get into atlas?
1
3403
by: shaunwo | last post by:
I'm an AJAX / DOM Novice (at best) and trying to figure out how to write the value to a couple input fields. I don't remember exactly where I got the ajax.js file I'm using from (went to the website that I see in the comments, but no luck there), but what I already have works GREAT to populate the options in a select box. Now I'm trying to take that same code and get it to write the value to a couple input boxes. Here's a link to my ajax...
11
3033
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7 and IE8. There is no issue when the controls are allowed to complete loading. Can you please tell me the best practice that handles this? Thanks.
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.