Most browsers limit the number of simultanious requests and or paralel downloads not just IE
Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "David Dyer" <[email protected]> To: "Prototype & script.aculo.us" <[email protected]> Sent: Wednesday, July 22, 2009 6:07 PM Subject: [Proto-Scripty] Re: prototype Ajax.Request returning 12002 ONLY in IE on remote server. Some further info after a bit more investigation. The failing ajax.request "hangs" in readyState 1 for approximately 5 minutes. After that it gets a readyState 4 and a response.status of 12002. Watching the apache access logs and java debugging logs on the servlet mapped to the request URL confirms that the request is never seen server side (not surprising since readyState 1 means that the transport hasn't executed it's send yet. It appears to be related to the fact that IE limits the number of concurrent requests (in IE 7 the limit is 2 for http 1.1), although the requests in my case are synchronous and there is only one ajax request being executed at any given moment. However, raising the request limit using the registry editor did get rid of the problem. However that's not a feasible solution for end users. Any ideas for a workaround? David On Jul 20, 1:46 pm, David Dyer <[email protected]> wrote: > I've come across a problem that maybe someone in this group can help. > > Context: > -------------- > I'm running a SCORM engine within a portal. The engine is essentially > the ADL sample runtime, which uses prototype to communicate between > the SCORM api wrapper and the server. > > I've tested the application in IE and Firefox on a windows machine > under a tomcat container and it works fine with various SCORM packages > created from different sources (eg Reload, Articulate, some other > third party proprietary courseware). > > However, when run on a remote server (linux/apache/tomcat environment) > all the courses from one particular source, created using Articulate > have problems in IE (specifically testing in IE 7 at the moment) but > not in Firefox. > > Description: > -------------------- > The problem does not always occur at the same place within a course, > it can happen immediately or at a later point within the > presentation. > > When the "error" occurs the content being loaded into the flash > presentation stops and eventually the Ajax.Request returns 12002 > response in the onFailure (below). IE becomes completely unresponsive > to mouse events such as right clicks or attempts to close the window. > > I've also tried upgrading the version of prototype to 1.6.1_rc3 from > 1.5.1 with no change in results. > > The function calling the Ajax.Request is copied below: > > Javascript calling prototype: > ------------------------------------------------- > <script src="../js/prototype.js"></script> > > function genericAJAXCall(parm) { > var url = '<%=session.getAttribute("APP_REL_PATH")%>rts'; > var res = "false"; > var myAjax = new Ajax.Request(url, { > method: 'post', > postBody: parm, > asynchronous: false, > onSuccess: function(transport) { > res = transport.responseText; > }, > onFailure: function(xhr) { > alert('st_js_ajax_failure' + xhr.status); > }, > onException: function (xhr, e){ > alert('st_js_ajax_exception' + e); > } > } ); > return res; > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
