Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

ayecue/AjaxHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AjaxHook

  • Author: swe
  • Version: 0.1.0.0
  • Language: JavaScript

Short Description:

Hook all functions of the native XMLHttpRequest.

##Example:

/**
 *	Bind Ajax event
 */
var counter = 0,
	aborts = 0;

bindAjaxSuccess(function(){
	console.log('Request done: '+(++counter));
});

bindAjaxOnabort(function(){
	console.log('Request aborted: '+(++aborts));
});

bindAjaxOpen(function(){
	console.log('Open');
});

bindAjaxSend(function(){
	console.log('Sending');
});

About

Global Ajax hooker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published