473,396 Members | 1,784 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,396 software developers and data experts.

A bug in FF3's sync XHRs ?

Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?

--
Jorge.
Aug 31 '08 #1
2 1452
On Aug 31, 1:33*pm, Jorge <jo...@jorgechamorro.comwrote:
Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?

--
Jorge.
Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Somebody mentioned a bug in FF (3?) with sync mode AJAX requests in
your previous thread... Maybe this is it...
Sep 1 '08 #2
On Sep 1, 1:27*pm, GArlington <garling...@tiscali.co.ukwrote:
>
Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Yes, that's what is happening.

Here's the code of the SYNC button :

sync.onclick= function () {
var a, xhr= new XMLHttpRequest();
xhr.open("GET", "xhrData.txt?"+Math.random(), ** false ** );
xhr.send(null);
//dummy do-something-else-just-in-case before returning
//See cljs thread 2
a= 1;
};

If you can monitor the network traffic you'll see that pressing it
once produces a traffic of x (KB/s), pressing it twice yields 2x, etc.
IOW: the synchronous XHRs are being posted asynchronous and
concurrently.

--
Jorge.
Sep 2 '08 #3

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

Similar topics

1
by: kartik | last post by:
I open an fstream in read-only mode, read till the end, then try to sync() before seeking to position 0 & reading again. But the sync fails. I discovered that clear()ing the stream before the sync...
3
by: Ryan Liu | last post by:
Hi, What does ArrayList.Synchronized really do for an ArrayList? Is that equal to add lock(this) for all its public methods and properties? Not just for Add()/Insert()/Remvoe()/Count, but also...
7
by: Ole | last post by:
Hi, I'm going to develop a socket communication between an instrument (running CE 5.0 with Compact Fraework V2) and a PC. As the instrument should only connect to one PC at a time I believe that...
3
by: iKiLL | last post by:
Hi , I am trying to debug a problem with a Windows Mobile Application. I need the PDA to Sync(I have writen the sync process myself using a web service) using GPRS while Debugging from the VS...
7
by: john | last post by:
I am reading TC++PL3 and on page 644 it is mentioned: "Flushing an istream is done using sync(). This cannot always be done right. For some kinds of streams, we would have to reread characters...
1
by: Jonathan N. Little | last post by:
Something I stumbled upon with the new Firefox 3. Love the new browser, but noticed that if your have a white-space: pre element within a fieldset it causes the containing fieldset to expand like a...
29
by: zalek | last post by:
I am writing application with Ajax in sync mode - xmlHttp.open("GET", url, false). I noticed that in FireFox handler doesn't starts. It starts when I use xmlHttp.open("GET", url,true). I need to...
14
by: DL | last post by:
The rationale is that certain IE7 features are great while FF3 got things that IE7 doesn't and the user has both browsers installed (not assumption but a requirement for "controled" use...
3
by: OldBirdman | last post by:
Help & Support - Start syncing 1. Click to open Sync Center - OK I did that 2. On the toolbar, click Sync All - There is NO toolbar So under Tasks, I click "Set up new sync partnerships". ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.