This is a migrated thread and some comments may be shown as answers.

Conflicting Calls

6 Answers 68 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Oziem
Top achievements
Rank 2
Oziem asked on 24 Jan 2008, 12:40 PM
Hi,

Is there any reason that two clientside AJAX requests might clash?

original code;
AjaxPanel1.AjaxRequest("1");  
AjaxPanel2.AjaxRequest("2"); 

If the second request is initiated before the first one has finished the first request does not update the page, eg. I have a panelbar in the first AJAX panel and a tree in the second.  I have set break points in the code and can see that the appropriate code is being run but which ever is called first does not return the updates.

If I add a delay then my code works correctly.

with delay;
AjaxPanel1.AjaxRequest("1");  
setTimeout("AjaxPanel2.AjaxRequest('2');",1000); 

I have also tested this with a delay on both calls (the same duration) and this doesn't work. 

I don't want to have to delay one call like this because the length of the delay will be different depending on the situation, internet connection type etc...

6 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 25 Jan 2008, 07:38 AM
Hello Oziem,

Unfortunately this is limitation of ASP.NET AJAX framework. You will not experience that with the "Classic" RadAjax, but we have not found any way to work around the problem in RadAjax Prometheus.

We will research the possibility to implement queuing functionality in Prometheus RadAjax similar to classic RadAjax.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Oziem
Top achievements
Rank 2
answered on 25 Jan 2008, 09:43 AM
Is there any point in us using the Prometheus AJAX?
0
Konstantin Petkov
Telerik team
answered on 25 Jan 2008, 12:47 PM
Hello Oziem,

Generally, Prometheus AJAX has its own advantages and disadvantages comparing to the "classic" RadAjax. For instance, the new features implemented in ASP.NET AJAX will be automatically supported in Prometheus RadAjax. The current limitations are listed here but you can review the other articles in "Changes and backwards compatibility" to understand the differences between the two AJAX frameworks.

As to the problem with simultaneous connections, I'd suggest you review the following interesting post:

http://geekswithblogs.net/rashid/archive/2007/08/08/Asp.net-Ajax-UpdatePanel-Simultaneous-Update---A-Remedy.aspx

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Oziem
Top achievements
Rank 2
answered on 11 Nov 2008, 04:43 PM

Hi,

 

Has the queuing functionality been implemented in the newest version of RAD AJAX (Q3 2008)?

Cheers

0
Vlad
Telerik team
answered on 12 Nov 2008, 07:21 AM
Hello Oziem,

Indeed this is implemented and you can control the behavior using RequestQueueSize property.

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Oziem
Top achievements
Rank 2
answered on 12 Nov 2008, 09:39 AM
Thats great thanks
Tags
Ajax
Asked by
Oziem
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Oziem
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or