MooTools - JSON .bind(this)

checkID: function(){
	new Request.JSON({
url:'json.php' onFailure: function(){alert('Error');}, onRequest: function(){alert('Request');}, onSuccess: function(person){ Object.each(person, function(value, key){ console.log(key + '...' + value); }); }.bind(this), /* binding callback */ }).get( Object.toQueryString(this.post) ); }

Related Posts

MooTools - JSON, MooTools - JSON Sort php array, JSON