Detecting Ajax Support





11
Date Submitted Mon. Aug. 21st, 2006 9:44 PM
Revision 1 of 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 3 comments
check if your browser/javascript supports Ajax.
For this we can use prototype's getTransport method.


if (Ajax.getTransport()) {
//supports ajax
}else{
alert('Ajax not supported')
}

 
You can include this onload of your page. Make sure that before checking this , to include the prototype.js in your page

Comments

Comments Prototype.js
Tue. Aug. 22nd, 2006 6:49 AM    Helper lgrover
  Comments Prototype
Wed. Aug. 23rd, 2006 12:08 AM    Syntax Master sundaramkumar
Comments Prototype
Fri. Aug. 25th, 2006 3:33 AM    Helper Cyber-Drugs

Voting