Created
December 20, 2010 15:13
-
-
Save AlexanderWingard/748486 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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