Skip to content

Instantly share code, notes, and snippets.

Avatar

Schlameel schlameel

  • US
View GitHub Profile
@schlameel
schlameel / gist:3730350
Created Sep 15, 2012
JQuery.get() Text
View gist:3730350
var url = "http://server.com/text/vegetables.txt"
$.get(url,
function(data) {
vegetables = data.split('n');
doSomething(vegetables);
},
"text"
);
@schlameel
schlameel / gist:3730341
Created Sep 15, 2012
JQuery.get() Chrome Only
View gist:3730341
// Read a text file into an array
//
// Text File:
// ----------
// Apple
// Banana
// Carrot
// Dragon Fruit
// Eggplant