about history and loadUrl not effective #151
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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