Skip to content

Instantly share code, notes, and snippets.

@AlexanderWingard
Created December 20, 2010 15:13
Show Gist options
  • Save AlexanderWingard/748486 to your computer and use it in GitHub Desktop.
Save AlexanderWingard/748486 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
var chart;
var cats = [];
var pass = [];
var fail;
var tr;
$.get('lsv_builds.html', function(data) {
var page = $(data);
var table = $("table", page)[0];
$("tr:lt(3)", table).remove();
$("tr", table).each(function(index) {
var row = $("td a", $(this));
cats.push($(row[0]).html());
pass.push(parseInt($(row[1]).html()));
tr = "apa";
});
});
alert(tr); // WHY the fuck är den undefined?
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment