useing var pjax = new Pjax({ selectors: ["body"], history: true });
the history not effective,and pjax.loadUrl("3.html", { requestOptions: { timeout: 200 }, });
useing pjax.loadUrl without history
useing
`var pjax = new Pjax({
selectors: ["body"],
history: true
});`
the history not effective,and
`
pjax.loadUrl("3.html", {
requestOptions: {
timeout: 200
},
});
`
useing pjax.loadUrl without history
@BehindTheMath i will trying to accomplish this: pjax.loadUrl("3.html", { requestOptions: { timeout: 200 }, }); and to change my history with browser,but ,loadUrl without changge browser history . maybe is my problem,?
@BehindTheMath i will trying to accomplish this:
`pjax.loadUrl("3.html", { requestOptions: { timeout: 200 }, });` and to change my history with browser,but ,loadUrl without changge browser history . maybe is my problem,?
Try cloning the repo, and run npm run example in the console. Click one of the button on the example page and check if the history changes.
The history under the back button stays the same?
Try cloning the repo, and run `npm run example` in the console. Click one of the button on the example page and check if the history changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
useing
var pjax = new Pjax({ selectors: ["body"], history: true });the history not effective,and
pjax.loadUrl("3.html", { requestOptions: { timeout: 200 }, });useing pjax.loadUrl without history
The
historyoption istrueby default; there's no need to set it manually.What are you trying to accomplish?
@BehindTheMath i will trying to accomplish this:
pjax.loadUrl("3.html", { requestOptions: { timeout: 200 }, });and to change my history with browser,but ,loadUrl without changge browser history . maybe is my problem,?Calling
pjax.loadUrl()should add that page to the top of the history stack. Is that not happening?@BehindTheMath notworking
The history under the back button stays the same?
Try cloning the repo, and run
npm run examplein the console. Click one of the button on the example page and check if the history changes.@BehindTheMath but i not useing npm ,useing
<script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script>,can't working for this?Can you check the console in the browser and see if there are any errors?
@BehindTheMath 0 errors,maybe rewrite source code