473,738 Members | 2,492 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
16 2042
we can't help with statements of only "it does not work"

you'll have to post the code .....
"deostroll" <de*******@gmai l.comwrote in message news:11******** *************@i 38g2000prf.goog legroups.com...
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 #11

"deostroll" <de*******@gmai l.comwrote in message
news:11******** *************@i 38g2000prf.goog legroups.com...
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.
You need to turn off the standard ASP session management and turn off ASP
debugging before you can get ASP to process more than one request from the
same client.
Jun 28 '07 #12
wait,
please correct me if i don't got it:
are you saying that a page
with multiple ajax requests is not possible
to be processed in parallel,
with the standard session management ??

that is, i see that ajax is working on my page
but, behind the scenes, iis can process
only one request by session ???

all the work that i see ajax is doing
is not actually in paralell (with std session mgt) ??
"Anthony Jones" <An*@yadayadaya da.comescribió en el mensaje
news:OZ******** ******@TK2MSFTN GP05.phx.gbl...
>
"deostroll" <de*******@gmai l.comwrote in message
news:11******** *************@i 38g2000prf.goog legroups.com...
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.

You need to turn off the standard ASP session management and turn off ASP
debugging before you can get ASP to process more than one request from the
same client.


Jun 29 '07 #13

"keyser soze" <ba*********@ho tmail.comwrote in message
news:u1******** ******@TK2MSFTN GP05.phx.gbl...
wait,
please correct me if i don't got it:
are you saying that a page
with multiple ajax requests is not possible
to be processed in parallel,
with the standard session management ??
Yep. For each script to run in parrellel each needs to be executed in
different threads. Since the session object is only single thread it can
not be shared by two threads at the same time. Even if one of the scripts
has no need of the session object the ASP processor has no way to know that.
It has to make one of the ASP scripts wait until the first is finished so
that it can move the session object off one thread and give it to the other.
>
that is, i see that ajax is working on my page
but, behind the scenes, iis can process
only one request by session ???
ASP can only processs one request per session. Strictly speaking IIS
doesn't know what an ASP session is.
>
all the work that i see ajax is doing
is not actually in paralell (with std session mgt) ??
You've got it.

Note fetching other resources form IIS are unnaffected by this limitation.
You can have the download of two XML files in parrellel but that wouldn't
help with performance much. In fact in terms of perceived performance it
could do more harm than good.

Also note that by default IE only creates 2 outstanding connections to any
one server and FF allows 8.


Jun 29 '07 #14
it is the same on asp.net ?
"Anthony Jones" <An*@yadayadaya da.comescribió en el mensaje
news:eU******** ******@TK2MSFTN GP05.phx.gbl...
>
"keyser soze" <ba*********@ho tmail.comwrote in message
news:u1******** ******@TK2MSFTN GP05.phx.gbl...
wait,
please correct me if i don't got it:
are you saying that a page
with multiple ajax requests is not possible
to be processed in parallel,
with the standard session management ??

Yep. For each script to run in parrellel each needs to be executed in
different threads. Since the session object is only single thread it can
not be shared by two threads at the same time. Even if one of the scripts
has no need of the session object the ASP processor has no way to know
that.
It has to make one of the ASP scripts wait until the first is finished so
that it can move the session object off one thread and give it to the
other.
>

that is, i see that ajax is working on my page
but, behind the scenes, iis can process
only one request by session ???

ASP can only processs one request per session. Strictly speaking IIS
doesn't know what an ASP session is.

all the work that i see ajax is doing
is not actually in paralell (with std session mgt) ??

You've got it.

Note fetching other resources form IIS are unnaffected by this limitation.
You can have the download of two XML files in parrellel but that wouldn't
help with performance much. In fact in terms of perceived performance it
could do more harm than good.

Also note that by default IE only creates 2 outstanding connections to any
one server and FF allows 8.


Jun 29 '07 #15

"keyser soze" <ba*********@ho tmail.comwrote in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
it is the same on asp.net ?
I can't give you a definitive answer on that you perhaps need to as over in
microsoft.publi c.dotnet.framew ork.aspnet.

However since thread-safe session state containers aren't supported in
ASP.NET I suspect that ASP.NET has no choice but to serialise page access
per session

>
"Anthony Jones" <An*@yadayadaya da.comescribió en el mensaje
news:eU******** ******@TK2MSFTN GP05.phx.gbl...

"keyser soze" <ba*********@ho tmail.comwrote in message
news:u1******** ******@TK2MSFTN GP05.phx.gbl...
wait,
please correct me if i don't got it:
are you saying that a page
with multiple ajax requests is not possible
to be processed in parallel,
with the standard session management ??
Yep. For each script to run in parrellel each needs to be executed in
different threads. Since the session object is only single thread it
can
not be shared by two threads at the same time. Even if one of the
scripts
has no need of the session object the ASP processor has no way to know
that.
It has to make one of the ASP scripts wait until the first is finished
so
that it can move the session object off one thread and give it to the
other.
>
that is, i see that ajax is working on my page
but, behind the scenes, iis can process
only one request by session ???
ASP can only processs one request per session. Strictly speaking IIS
doesn't know what an ASP session is.
>
all the work that i see ajax is doing
is not actually in paralell (with std session mgt) ??
>
You've got it.

Note fetching other resources form IIS are unnaffected by this
limitation.
You can have the download of two XML files in parrellel but that
wouldn't
help with performance much. In fact in terms of perceived performance
it
could do more harm than good.

Also note that by default IE only creates 2 outstanding connections to
any
one server and FF allows 8.




Jun 29 '07 #16
Check out these real-time ajax examples and the whitepaper that goes
with them...

http://ams.tibco.com

In these examples, multiple server-side data streams are multi-plexed
across a single persistent HTTP connection, then unpacked at the
client where they are published again to client-side ajax components.
The real-time data is served by a product from TIBCO called TIBCO Ajax
Message Service.

--Kevin Hakman (TIBCO).

Jul 10 '07 #17

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

Similar topics

11
2341
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
4326
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
1844
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
1839
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
16509
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
3069
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
2262
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
3415
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
3040
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
8787
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
9473
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...
0
9208
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
8208
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...
1
6750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
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...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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

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.