> >> I'm working on cross-platform portability of some javascript.
> >> My Macintosh testing platform is rather old. It has Safari
[quoted text clipped - 27 lines]
>
> It says "undefined". This looks hopeless.
> Not really. Looking at your feature test:
>
[quoted text clipped - 20 lines]
> }
> }
I get the alert "Creating ActiveX". Then it gets an error on the
next line: nameReq = new window.ActiveXObject("Microsoft.XMLHTTP");
The error is "Object doesn't support this action".
This is the same place the error occurred before. (I'm depending on
the IE error popup and its source code display to show the correct
line number. So far I have no reason to doubt it.)
I'm beginning to believe that the ActiveXObject doesn't support the
Microsoft.XMLHTTP action in this antique browser. Maybe I should
not try to support this version. It's fairly unlikely that many
people will use it.
> You shouldn't get any alerts or errors. If you do get an error, it
> should be apparent which line caused it.
David Mark - 30 Dec 2007 04:59 GMT
> > Not really. Looking at your feature test:
>
[quoted text clipped - 23 lines]
> I get the alert "Creating ActiveX". Then it gets an error on the
> next line: nameReq = new window.ActiveXObject("Microsoft.XMLHTTP");
That doesn't make any sense. What does these show:
alert(typeof window.ActiveXObject == 'undefined');
alert(typeof window.ActiveXObject != 'undefined');
> The error is "Object doesn't support this action".
It should never get there if window.ActiveXObject is undefined.
> This is the same place the error occurred before. (I'm depending on
> the IE error popup and its source code display to show the correct
> line number. So far I have no reason to doubt it.)
>
> I'm beginning to believe that the ActiveXObject doesn't support the
> Microsoft.XMLHTTP action in this antique browser. Maybe I should
ActiveX doesn't do anything on a Mac. That is why
window.ActiveXObject is undefined. It should be trivial to detect
that and skip the of creation the object.
> not try to support this version. It's fairly unlikely that many
> people will use it.
Yes, it is basically a waste of time.
Thomas 'PointedEars' Lahn - 30 Dec 2007 09:38 GMT
> I'm beginning to believe that the ActiveXObject doesn't support the
> Microsoft.XMLHTTP action in this antique browser [IE 5.2 for Mac]. [...]
Have you read <news:4775B3A0.7080607@PointedEars.de> fully? (Unlike you, I
quote properly, so where there is a quote block there is a response below it.)
PointedEars

Signature
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann