2012-07-31 35 views
1

我想實現一個WordPress站點pushState的,並具有一些真正troublkeHTML5 pushState的()在WordPress的

我已經嘗試使用這些

當我使用 http://html5.gingerhost.com/ =我得到錯誤

GET http://wwww.mydomain.com/content.php?format=json 

404 Not Found 
     487ms 
jquery.min.js (line 4) 

"NetworkError: 404 Not Found - http://www.mydomain.com/content.php?format=json" 

這2種方法顯示我整個頁面!而不是指定的段

  1. http://tinywall.info/2012/02/22/change-browser-url-without-page-reload-refresh-with-ajax-request-using-javascript-html5-history-api-php-jquery-like-facebook-github-navigation-menu/

  2. http://www.franckmaurin.com/how-to-use-html5-history-with-wordpress-jquery/

我失去了一些東西在這裏獲得WordPress可能?

我的導航看起來像這樣

<ol class="primary-nav"> 
     <li class="page_item"><a href="http://www.mydomain.com/charities">/&nbsp;Charities</a></li> 
     <li class="page_item"><a href="http://www.mydomain.com/contact">/&nbsp;Contact</a></li> 
     <li class="page_item"><a href="http://www.mydomain.com/join-us">/&nbsp;Join us</a></li> 
     <li class="page_item"><a href="http://www.mydomain.com/news">/&nbsp;News</a></li> 
     <li class="page_item"><a href="http://www.mydomain.com/who-we-are">/&nbsp;Who we are</a></li> 
    </ol> 
+0

什麼瀏覽器是你? – 2012-07-31 20:12:09

+0

我正在使用Firefox 14 – MonteCristo 2012-07-31 20:17:42

回答