yesod/yesod-examples/static/yesod/ajax/script.js
Michael Snoyman 41faf62094 Add 'yesod-examples/' from commit '851f928e55b3646f7790b6cc70968957cca04a4b'
git-subtree-dir: yesod-examples
git-subtree-mainline: 2dc10de435
git-subtree-split: 851f928e55
2011-07-22 08:59:56 +03:00

10 lines
202 B
JavaScript

$(function(){
$("#navbar a").click(function(){
$.getJSON($(this).attr("href"), {}, function(o){
$("h1").html(o.name);
$("article").html(o.content);
});
return false;
});
});