Refresh page

Refresh page

I have a page with dynamic content fetched from mySQL DB.
All my function calls are with in
$(document).ready(function () {

When I switch page my code is not fired. Only after a browser refresh the page is correctly filled in.
I read about page refresh problems using Google and tried to use a pagerefresh function. No success.

My page is in a div with role = page.
I switch like this
          <li><a id='location' title='Hier legt u alles vast wat betrekking heeft op de locatie' href="location.htm">Locatie</a></li>

  $('#locationpage').trigger('create'); Tried this as well.