mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Pjax docs
This commit is contained in:
parent
541e42f922
commit
df4fde3864
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user