10-24-2008, 05:07 PM
|
#10 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Dont use browser detection, instead use object detection:
javascript Code:
function createRequestObject() { try{ return new XMLHttpRequest(); } catch (e) { try{ return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { return false; } } } }
For more information: Javascript - Object detection
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|