www.pokeroconnor.com


Ajax for Beginners

April4

Quickest and easiest tutorial, and should be your first starting point as it serves as a good, simple introduction to the XMLHttpRequest object. Then one of the first AJAX tutorials is here. Typical creation of the object:

function ajaxFunction()
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  }
//
posted under jQuery & JS

Email will not be published

Website example

Your Comment: