Skip to content

Instantly share code, notes, and snippets.

@darrenbkl
darrenbkl / ajax.js
Created July 13, 2016 04:57 — forked from xeoncross/ajax.js
Simple, cross-browser Javascript POST/GET xhr request object. Supports request data and proper AJAX headers.
/**
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object
*
* @param string url
* @param object callback
* @param mixed data
* @param null x
*/
function ajax(url, callback, data, x) {
try {
@darrenbkl
darrenbkl / 0_reuse_code.js
Created June 4, 2016 10:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console