Created
February 15, 2013 15:10
-
-
Save barek2k2/4960937 to your computer and use it in GitHub Desktop.
This file contains 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
<script type="text/javascript"> | |
$(function() { | |
updateState(); | |
$("#front_stat").submit(function() { | |
updateState(); | |
return false; | |
}); | |
}); | |
function updateState(){ | |
$.get($("#front_stat").attr("action"), $("#front_stat").serialize(), function(response){ | |
$("#front_page_stat").html(response) | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment