Permalink
Browse files

Pjax docs

  • Loading branch information...
1 parent 541e42f commit df4fde38648d180eaa18d712af76e9f389462174 @chillu chillu committed Nov 18, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/en/reference/cms-architecture.md
View
5 docs/en/reference/cms-architecture.md
@@ -250,6 +250,11 @@ Keep in mind that the returned view isn't always decided upon when the Ajax requ
is fired, so the server might decide to change it based on its own logic,
sending back different `X-Pjax` headers and content.
+On the client, you can set your preference through the `data-pjax-target` attributes
+on links or through the `X-Pjax` header. For firing off an Ajax request that is
+tracked in the browser history, use the `pjax` attribute on the state data.
+
+ $('.cms-container').loadPanel('admin/pages', null, {pjax: 'Content'});
## Ajax Redirects

0 comments on commit df4fde3

Please sign in to comment.