function blogsLoadPM(uname) { $.getJSON('http://api.juick.com/pm?hash='+hash+'&uname='+uname+'&callback=?').done(function(data) { var ul=$('#content>ul'); ul.empty(); $("p.page").hide(); $.each(data,function(i,item) { var li=$("
  • "); if(item.user) { li.attr("class","pm-in"); } else { li.attr("class","pm-out"); } li.text(item.body); li.appendTo(ul); }); }); }