[jQuery] AJAX module vs. Opera

[jQuery] AJAX module vs. Opera


Hi there,
currently the AJAX module isn't working in Opera.
Opera 8 does not support setRequestHeader, I know, but to fix later
versions, the follwing lines:
if ( typeof XMLHttpRequest == 'undefined' ) {
function XMLHttpRequest() {
...
should be changed to this:
if ( typeof XMLHttpRequest == 'undefined' && typeof window.ActiveXObject
== 'function') {
window.XMLHttpRequest = function() {
...
Otherwise Opera throws a ReferenceError.
This seems a little odd to me, as
function foo() {
...
}
is the same as window.foo (scopewise), but oddness is not to be
complained about with all the browsers bugs out there...
Thank you for the good work so far!
Klaus
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/