Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created April 12, 2012 21:41
Show Gist options
  • Save wilornel/2371187 to your computer and use it in GitHub Desktop.
Save wilornel/2371187 to your computer and use it in GitHub Desktop.
function ajaxExecution(functionToExecute, link1)
{
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4)
{
functionToExecute;
}
}
var link_ = "link" +functionToExecute;
ajaxRequest.open("GET", link_, true);
ajaxRequest.send(null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment