473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Simultaneous AJAX calls with Prototype?

Hi everyone!

I am using the Prototype library and ran into a serious limitation. I
need to make many concurrent AJAX calls to the server, but Prototype is
queueing them instead. Obviously, this is slowing my web application a
lot.

Is it a Javascript or Prototype limitation? If Prototype is in cause,
is there a work around? I'd rather keep Prototype since I also use
script.aculo.us.

Thank you!

Carl

Mar 13 '06 #1
5 2506
cm******@gmail.com wrote:
I am using the Prototype library and ran into a serious limitation. I


Prototype.js is junk.
PointedEars
Mar 13 '06 #2
So... what do you suggest?

Mar 13 '06 #3
cm******@gmail.com wrote:
So... what do you suggest?


<URL:http://jibbering.com/faq/>
PointedEars
Mar 13 '06 #4
cm******@gmail.com wrote:
I am using the Prototype library and ran into a serious limitation. I
need to make many concurrent AJAX calls to the server, but Prototype
is queueing them instead. Obviously, this is slowing my web
application a lot.
Is it a Javascript or Prototype limitation?


Depends. It could be an HTTP limitation. Clients are only allowed 2
connections to a server at a time using HTTP/1.1 (afaik). So your browser
may be queuing many requests.

I don't know how prototype does ajax, but you can also check out my lib at
http://www.AjaxToolbox.com/ which I know for sure does not queue up
requests.

If prototype doesn't have a support forum, it needs one. You should suggest
it to the author. Too many questions end up here.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Mar 13 '06 #5
On 13/03/2006 19:20, Matt Kruse wrote:
Clients are only allowed 2 connections to a server at a time using
HTTP/1.1 (afaik).


Clients that use persistent connections SHOULD limit the number
of simultaneous connections that they maintain to a given
server. A single-user client SHOULD NOT maintain more than 2
connections with any server or proxy.

-- RFC 2616, 8.1.4 Practical Considerations

The phrases 'SHOULD' and 'SHOULD NOT' being very strong recommendations
as far as the RFC is concerned.

I don't think that there are limits to non-persistent connections, but
Firefox only allows eight per server by default.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Mar 13 '06 #6

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

Similar topics

2
by: chuck | last post by:
Hi, Firstly, I don't know if this is just and isolated thing with the prototype.js library or is a problem in general with ajax calls with a '+' character, so i am posting it here. I am...
3
by: morganwhitney | last post by:
Hi all, I am developing a web app and I am implementing the JavaScript using the Prototype Framework. I have done all the same stuff from scratch in a previous application and it worked fine, but...
9
by: darrel | last post by:
Last week I asked about ASP.net 2.0 AJAX frameworks and there appears to be several to choose from. I haven't used ASP.net 2.0 yet, but from doing a bit of reading, it appears that ASP.net 2.0...
17
by: Chaprasi | last post by:
Hi I need help with prototype while doing ajax calls. So this is my JS which does a ajax calls var ajax1 = new Ajax.Request ( url, { method: 'get', parameters: params, onComplete:...
14
by: paladin.rithe | last post by:
I was looking at libraries for my project, and was thinking about using Prototype, but I was seeing that people have reservations about it. All I really need is some basic Ajax stuff, the basic...
2
by: dmagliola | last post by:
Hello all, I'm experiencing a problem with ASP.Net for which I can't find a reasonable explanation, or any information. I'm currently developing an application that, through AJAX, asks the...
4
by: ext237 | last post by:
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is called BEFORE the response is returned by the call. Is there a coding issue or a work around? var ajax = new...
3
by: wendallsan | last post by:
Hi All, I've stumped myself writing an app that uses Prototype and a bit of PHP. Here is what I have: I have a custom class named Default_county_init_data that, upon initialization makes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.