Skip to content

Commit

Permalink
Requires jquery 1.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 22, 2013
1 parent 13e3f3a commit d67708c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -23,9 +23,9 @@

## pjax = pushState + ajax

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.
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.

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.
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.

For [browsers that don't support pushState][compat] pjax fully degrades.

Expand Down Expand Up @@ -60,7 +60,7 @@ $(document).pjax('a', '#pjax-container')

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`.

Magic! Almost. You still need to configure you server to look for pjax requests then send back pjax-specific content.
Magic! Almost. You still need to configure you server to look for pjax requests then send back pjax-specific content.

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.

Expand Down Expand Up @@ -108,7 +108,7 @@ curl -O https://raw.github.com/defunkt/jquery-pjax/master/jquery.pjax.js

## Dependencies

Requires jQuery 1.7.x or higher.
Requires jQuery 1.8.x or higher.

## Compatibility

Expand Down Expand Up @@ -285,7 +285,7 @@ $ cd jquery-pjax/
To run the test suite locally, start up the Sinatra test application.

```
$ ruby test/app.rb
$ ruby test/app.rb
== Sinatra/1.3.2 has taken the stage on 4567 for development with backup from WEBrick
$ open http://localhost:4567/
Expand Down
2 changes: 1 addition & 1 deletion component.json
Expand Up @@ -3,6 +3,6 @@
"version": "1.2.0",
"main": "./jquery.pjax.js",
"dependencies": {
"jquery": ">=1.7"
"jquery": ">=1.8"
}
}

0 comments on commit d67708c

Please sign in to comment.