Wrox Programmer Forums
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 17th, 2006, 01:51 PM
AGS AGS is offline
Wrox Technical Editor
Join Date: May 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMLHttpRequest asyncronous by default?


Frankly speaking I was sure until recently that default value for third parameter of XMLHttpRequest.open() method is true for all browsers that support XMLHttpRequest object. But verifying some code today I've realized suddenly that Firefox request is synchronous by default. Rather unexpected discovery. I wonder what the reason was to implement it this way taking into account that W3C Working Draft states that this parameter is defaulting to true if omitted?


Alexey Gorkov
Old June 17th, 2006, 03:49 PM
nzakas's Avatar
Wrox Author
Join Date: Dec 2004
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts

You have to remember that IE invented XMLHttp and Mozilla just duplicated its efforts. The fact that it's now going through a working draft at W3C doesn't mean that that is the way it *should* be.

My guess is that Firefox is using the old tried and true method of considering a null or undefined argument to be false (!!null or !!undefined).

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
Old June 17th, 2006, 04:44 PM
AGS AGS is offline
Wrox Technical Editor
Join Date: May 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts

I just meant that there would be far less troubles for developers if such "duplications" were literal until respective standard emerged.

Similar Threads
Thread Thread Starter Forum Replies Last Post
XMLHttpRequest.open smys123 Javascript 4 August 21st, 2007 02:18 AM
XMLHttpRequest object instantiation AGS BOOK: Beginning Ajax with ASP.NET 4 September 25th, 2006 03:52 AM
using XmlHttpRequest from .pac file sergeyk BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 September 5th, 2006 12:19 PM
xmlhttprequest - mozilla alexena XML 0 August 23rd, 2006 07:16 AM
Multiple Concurrent Requests to XmlHttpRequest deepak.vasudevan Javascript 0 November 14th, 2005 06:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.