andy,

interesting parameter and good to know this.

is there any way to incorporate a "global" or formal parameter to each
component?

i mean something like -  all AjaxDirectLinks and AjaxSubmits should behave
in a way where they check the tacos.requestsInFlight parameter and actually
wait to execute?  It would be Ajax, but Synchronously.

Thanks  - karthik.

On 12/2/06, andyhot <[EMAIL PROTECTED]> wrote:

There's a little-known non-documented variable that we use for
selenium tests that shows us if there are any ajax requests in process...

It's contained in
/tacos-core/src/java/net/sf/tacos/ajax/components/tacos.js
and it's
tacos.requestsInFlight
It stores an integer with how many ajax requests are currently being
executed
(i.e. have started but have not yet had a response)

There's also a method tacos.isServingRequests that's simply defined as:

tacos.isServingRequests = function() {
    return (tacos.requestsInFlight > 0);
}

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to