Forum Moderators: open

Message Too Old, No Replies

Detect AJAX support for non-AJAX browsers.?

An alert for non-AJAX browsers such as Opera 8.01 & Gecko 0.9?

         

JAB Creations

5:09 pm on Apr 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape 6/Gecko 0.9 and Opera 8.01 and older are the most modern non-AJAX browsers I can think of. I know only some guy who connects to the internet on a 14K modem on his Commodore 64 computer living on one of those far north Canadian islands is likely the only person using such browsers though I am interested in the challenge.

I've tried a few tests with Opera 7.54 including this...

if (XMLHttpRequest) {alert('yes');}
else if (!XMLHttpRequest) {alert('no');}

...I have not done much with object detection and have only been trying it out a little of late.

Suggestions? ...and no it's not an April Fools post, I really am this crazy. ;)

- John

httpwebwitch

2:10 am on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



did it work?

you'll want to check for both flavours of XHR, including the the ActiveX one.

I believe there was once an article about this at developer.apple.com, in the early days pre-"AJAX" (before it was named such) when browser compatibility was more uncertain.

JAB Creations

2:15 am on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was able to successfully get older versions of Opera [4-7] to correctly execute my script as it correctly failed the following object detection...
window.XMLHttpRequest

Now I have to uninstall IE8B1 to get my stand alone versions of IE to work again so I can test IE4 out. :)

- John