Anyway to dertmine if a user has XMLHTTPRequest capabilities?

Posted on 2005-03-24
Medium Priority
Last Modified: 2006-11-17
Is addition to the Javascript question I posted earlier about detecting if a user has Javascript capabilities, is there anyways to narrow that down even futher to XMLHTTPRequest?

I know there's probably no built in way to do it with PHP, but if there is some sort of clever trick, I'd like to know how to do it. Becuase I know as of this wiriting, Opera (non beta 7.5.4) does not support XMLHTTPRequest, so I'd like to display alternative content for those users as well as others that lack the support.

Note: I know it's possible to emulate it in Opera, but Opera 7.6 is supposed to add in support, and I am mainly looking for backwards compatibility for much older browsers.
Question by:MaybeItsJeremy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

munkywrench earned 2000 total points
ID: 13627430
I don't think there is a way, but you could always just use $_SERVER['USER_AGENT'] and have a table of which browsers support it and which dont?

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question