Team:UNITN-Trento/Templates/Notebook

From 2013.igem.org

(Difference between revisions)
Line 31: Line 31:
href += "?action=raw&ctype=text/javascript"
href += "?action=raw&ctype=text/javascript"
$.getJSON( href , function(data) {
$.getJSON( href , function(data) {
-
alert(data);
+
var date = data.date;
-
alert("date: " + data.date);
+
var author = data.author;
-
alert("author: " + data.author);
+
var title = data.title;
-
alert("title: " + data.title);
+
var content = data.content;
-
alert("content: " + data.content);
+
var tags = data.tags;
-
alert("tags: " + data.tags);
+
 
 +
$('<div></div>').attr('id' , 'tn-post-'+date+"-"+author).addClass('tn-post').attr('data-user' , author).attr('data-title' , title).attr('data-date' , date).attr('data-tag' , tags).append($("<div></div>").addClass('tn-text').html(content)).appendTo($("#aj_cont"));
});
});
});
});

Revision as of 07:41, 19 August 2013

Filter by DATE
 
Sun Mon Tue Wed Thu Fri Sat
             
             
             
             
             
             
{{{1}}}
Filter by WHO
Filter by TAG
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Notebook&action=edit Edit this page] | Main Page