View Single Post
Old 02-13-2013, 06:32 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,451
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
What is the purpose of:

Code:
if (browser == "Microsoft Internet Explorer") {
			objAjax = new ActiveXObject("Microsoft.XMLHTTP");
		} else {
			objAjax = new XMLHttpRequest();
		}
All browsers now recognise XMLHttpRequest and the navigator.appName can contain "Microsoft Internet Explorer" in Firefox, Opera, Chrome or Safari masquerading as Internet Explorer and Intertnet Explorer can be set to identify itself as any other browser. Even if you do need to include the activeX call to support the dead IE6 browser then there are more accurate ways to difect that call specifically to IE4 through IE6 that don't interfere with other browsers being able to use the call that they recognise.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote