RailsCasts Pro episodes are now free!

Learn more or hide this

miles801's Profile

GitHub User: miles801

Comments by

Avatar

help,i have a trouble with the pjax ..

btw,my english is pool,maybe there's some mistakes ~

ok,i download the lastest pjax at https://github.com/defunkt/jquery-pjax
then code as the demo,but it doesn't work,also there's no errors.

head
<script type="text/javascript" src="jquery.1.9.js"></script>
<script type="text/javascript" src="../js/jquery/plugin/jquery.pjax.js"></script>

$(function() {
        $('#pjax-container').pjax('a',{timeout:3000});
});
body
<h1>My Site</h1>
<div class="container" id="pjax-container">Go to
        <a href="MyHtml.html">next page</a>.
</div>

when i click on the link,it refresh whole page.
could any one help me ?thanks a lot!

email:miles.luffy@gmail.com