Pjax.prototype.loadUrl() not working #8
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?
Thanks for this great project!
I am attempting to implement a PJAX redirect with
Pjax.prototype.loadUrl(). The actual code isWhen I attempt to run call this, I get an error
I fixed this error by adding
this.options = optionsto the very beginning of theloadUrl()function. However, after I fixed that error, I got a new error:So with this second error, it falls back to the
window.location()option, which is not the behavior that I am looking for. I have messed around with the code in order to fix this error but I have yet to find a solution.Oh.
You should use a Pjax instance. Not directly the prototype. Maybe you need to learn a little more JavaScript https://encrypted.google.com/search?hl=en&q=javascript%20prototype
See https://github.com/MoOx/pjax#new-pjax
After this you can eventually try (but I'm not sure this will work)
Having the same issue, would be much better if the guide could cover this a bit. As it stands, I cannot get Pjax working at all using the readme document.
Please provide more informations so I can eventually help you. What code are you using ?