|
23 | 23 |
|
24 | 24 | ## pjax = pushState + ajax
|
25 | 25 |
|
26 |
| -pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button. |
| 26 | +pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button. |
27 | 27 |
|
28 |
| -pjax works by grabbing html from your server via ajax and replacing the content of a container on your page with the ajax'd html. It then updates the browser's current url using pushState without reloading your page's layout or any resources (js, css), giving the appearance of a fast, full page load. But really it's just ajax and pushState. |
| 28 | +pjax works by grabbing html from your server via ajax and replacing the content of a container on your page with the ajax'd html. It then updates the browser's current url using pushState without reloading your page's layout or any resources (js, css), giving the appearance of a fast, full page load. But really it's just ajax and pushState. |
29 | 29 |
|
30 | 30 | For [browsers that don't support pushState][compat] pjax fully degrades.
|
31 | 31 |
|
@@ -60,7 +60,7 @@ $(document).pjax('a', '#pjax-container')
|
60 | 60 |
|
61 | 61 | Now when someone in a pjax-compatible browser clicks "next page" the content of `#pjax-container` will be replaced with the body of `/pjax/2`.
|
62 | 62 |
|
63 |
| -Magic! Almost. You still need to configure you server to look for pjax requests then send back pjax-specific content. |
| 63 | +Magic! Almost. You still need to configure you server to look for pjax requests then send back pjax-specific content. |
64 | 64 |
|
65 | 65 | The pjax ajax request sends an `X-PJAX` header so in this example (and in most cases) we return a page without a layout to any requests with that header.
|
66 | 66 |
|
@@ -108,7 +108,7 @@ curl -O https://raw.github.com/defunkt/jquery-pjax/master/jquery.pjax.js
|
108 | 108 |
|
109 | 109 | ## Dependencies
|
110 | 110 |
|
111 |
| -Requires jQuery 1.7.x or higher. |
| 111 | +Requires jQuery 1.8.x or higher. |
112 | 112 |
|
113 | 113 | ## Compatibility
|
114 | 114 |
|
@@ -285,7 +285,7 @@ $ cd jquery-pjax/
|
285 | 285 | To run the test suite locally, start up the Sinatra test application.
|
286 | 286 |
|
287 | 287 | ```
|
288 |
| -$ ruby test/app.rb |
| 288 | +$ ruby test/app.rb |
289 | 289 | == Sinatra/1.3.2 has taken the stage on 4567 for development with backup from WEBrick
|
290 | 290 |
|
291 | 291 | $ open http://localhost:4567/
|
|
0 commit comments