Benches Mail, Safari and messaging

0

Safari 5 - JavaScript XMLHttpRequest implementation - synchronous mode

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi all,

I am currently working on a project at my company, they have a web application which is running on IE only (full use of Active X objects) and I have to make it cross-browser compatible (niiice ^^)

So here I am posting on this Safari for Windows forum because the problem I have only occurres on Safari 5 (it works great on Firefox 3.6 and Chrome 6).

I am using the JavaScript XMLHttpRequest implementation to make requests to the server, these requests are made in synchronous mode (async = false).

Anyway, synchronous requests are no problem for the others browsers (IE, FF & Chrome) but it seems that Safari 5 doesn't like it when processing on the server becomes a bit too long (it works fine for a short processing).

Instead of receiving the server response, the XMLHttpRequest object seems to simply abort the request (so nothing happens) and I have the following error which appears in the console :

*NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.*

I have made some simple tests to determine how long the processing on the server has to be to cause this error client side : it appeared that the response is well received by the XHR object if the process lasts less than 10 seconds (roughly).

If the process is > than 10 seconds, if have the error mentionned above and the application stops.

So my question is, is there a way that I could increase this value in order to well receive the server response (the server takes around 13 seconds to complete processing in my case) ?

I have already made some researches on google but I couldn't find any useful information.

Thank you for your answers !

0 replies

Sign in or join Beachball Help to reply.