comparison about-mozilla.js @ 1:4dd50afc32c8

Successfully getting headlines and body of each article.
author Atul Varma <varmaa@toolness.com>
date Sat, 28 Feb 2009 13:02:50 -0800
parents 58d9c5ef124e
children 2be94bbd7f04
comparison
equal deleted inserted replaced
0:58d9c5ef124e 1:4dd50afc32c8
1 function onIssueLoaded() {
2 $("a[name]").each(
3 function(i) {
4 var headline = $(this).next().text();
5 var body = $("<div></div>");
6 for (var node = $(this).parent().next();
7 node.length && !node.find("a[name]").length;
8 node = node.next(":not(.postmetadata)"))
9 body.append(node.clone());
10 }
11 );
12 }
13
1 $(window).ready( 14 $(window).ready(
2 function() { 15 function() {
3 $(document.body).load("issue-2009-02-24.html .post", 16 $(document.body).load("issue-2009-02-24.html .entry",
4 null); 17 null,
18 onIssueLoaded);
5 }); 19 });