PJAX: force entire page to reload on manual refresh, how? -


i'm new pjax , ajax, scripting in general. have simple pjax implementation works except when manually performing hard reload of page.

upon manually reloading page keyboard command or mouse click pjax div reloaded browser window instead of entire page (container frame , pjax div) meaning 80% of page goes away including header, footer, navigation, styles, etc.

i'm looking way force frame reload along current pjax content instead of naked pjax content no frame. thanks.

here's simple reduction of code:

<a data-pjax='#pjax-container' href="https://10.0.1.8:8890/location/3114">seattle</a>  <script type="text/javascript">     $( document ).ready(function() {     $(document).pjax('[data-pjax] a, a[data-pjax]', '#pjax-container');     }); </script>  <div id="pjax-container"> ...pjax loaded content... </div> 

try :

$.pjax.reload('#pjax-container')

the documentation of pjax explains options can add : https://github.com/defunkt/jquery-pjax


Comments

Popular posts from this blog

mongodb - How to keep track of users making Stripe Payments -

javascript - Fire on return from form "Submit" -

javascript - Thinglink image not visible until browser resize -