function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLH
With jquery you don't have to have this headache.
just use $.ajax
function http://api.jquery.com/jQuery.ajax/ and don't have to bother about browser compatibility or ...
a simple example is here
$.ajax({
url: 'someserverfile.php?someparam_or_nothing', //url
type: 'get', //method type post or get
dataType: 'json', //return data type
success: function(data) {
//on success function handler
},
});