次のコードがあり、フォームを送信するときに機能します (同じページにとどまります) が、送信後に現在のページを更新することも必要です。
<script>
$('form').live('submit', function(){
$.post($(this).attr('action'), $(this).serialize(), function(response){
// Here I need a code to refresh the page. I tried with window.location.reload(); no success...
},'json');
$('form').hide();
return false;
});
助けてくれてありがとう