This content has been marked as final.
Show 5 replies
-
1. Re: How to get all active ajax requests ?
nbelaevski Jul 16, 2009 6:38 AM (in response to boraldo1)Hi,
Use a4j:status onstart/onstop attributes. -
2. Re: How to get all active ajax requests ?
boraldo1 Jul 16, 2009 6:40 AM (in response to boraldo1)"nbelaevski" wrote:
Hi,
Use a4j:status onstart/onstop attributes.
Can you write sample, please? I mean javascript function that does it. -
3. Re: How to get all active ajax requests ?
ilya_shaikovsky Jul 16, 2009 10:35 AM (in response to boraldo1)simplest thing.. Which actually i'm not sure will works fine with concurent a4j requests.
var count=0;
<a4j:status onstart="count=count+1" onstop="count=count-1"/>
so when count equals to 0 nothing fired currently.
In case it will works wrong you could with concurrent requests just define events queue and check its size when needed. -
4. Re: How to get all active ajax requests ?
boraldo1 Jul 17, 2009 11:37 AM (in response to boraldo1)"ilya_shaikovsky" wrote:
<a4j:status onstart="count=count+1" onstop="count=count-1"/>
This is a jsp tag. I ask for javacript !! -
5. Re: How to get all active ajax requests ?
nbelaevski Jul 17, 2009 12:02 PM (in response to boraldo1)onstart="count=count+1" onstop="count=count-1"
- both attributes contain Javascript code. There's no API that can be used to track working requests; status and queue can give some information on this, however not all requests use global status and queue objects.
You can try substituting AJAX submission functions by your own, however these functions are not part of public API.