Skip to content

Commit a62cc86

Browse files
luisrudgemislav
authored andcommitted
Document $.pjax.reload function
Closes #441 [ci skip]
1 parent efe7c5c commit a62cc86

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ $(document).on('submit', 'form[data-pjax]', function(event) {
198198
})
199199
```
200200

201+
### `$.pjax.reload`
202+
203+
Initiates a request for the current URL to the server using pjax mechanism and replaces the container with the response. Does not add a browser history entry.
204+
205+
``` javascript
206+
$.pjax.reload('#pjax-container', options)
207+
```
208+
201209
### `$.pjax`
202210

203211
Manual pjax invocation. Used mainly when you want to start a pjax request in a handler that didn't originate from a click. If you can get access to a click `event`, consider `$.pjax.click(event)` instead.

0 commit comments

Comments
 (0)