« Integrating SailWave Race Results with jQuery | Main | I'll see your Groovy and raise you a Python (and Ruby, PHP for good measure) »



Feed You can follow this conversation by subscribing to the comment feed for this post.

Erick Dovale
Parameters in javascript are optional. I guess the reason why XmlHttpRequest parameter is there is for cases where the response text and status are not enough for the kind of processing you need to do. Most use cases though there will be no need to even declare the parameter in your callback. Convenience is king.
Parameters may be optional, but they are not named, meaning in this case you need to provide all the redundant parameter placeholders in order to access the one you want. IMHO, it would of been just as convenient and less obtuse if they simply passed in the XMLHttpRequest as the single optional parameter.
This worked out perfectly on this Jquery project I am currently working on. Cheers, Christian

The comments to this entry are closed.