It's hard to find issues with Safari 7, but I've got a weird one. I'm using pushstate and popstate to modify the browser history for an ajax content loader code I've written. The code works fine with the exception of the popstate code...
I am currently working on a website with ajax support. Navigating through website and the browser's history works great, but there is one problem I cannot solve.  When the user presses the back button, the last page appears again. But although I...
I am trying to learn History Web API, but already have problems at the first hurdle.  I am able to get history.pushState working, but have issues with popstate. It works fine when clicked for the first time after AJAX page load, but if I load that sa...
For chrome the event fires on page load, but in firefox it fires the rightway, only when you press the backward or forward button. So how to write a script that works fine for all browsers?...
Script  window.addEventListener('popstate', function (event) {     console.log(core.current.queryString.k);     if (!core.current.queryString.k || core.current.queryString.k == "") {         $(".container").removeClass("so...
Good afternoon, I have a project with vue, and in one part I have a preview page (http://127.0.0.1:8000/billing-financial/statements/preview/1/), on this page I click on a button that generates a statement (http://127.0.0.1:8000/billing-financial/sta...
I have added the pushstate fairly easily, but maybe i did that wrong. How do i put the popstate in my code so that when after clicking on the div, displaying the data, when i click back it will update the page? This may be easy to do, im a noob at ja...
I am trying to alert the user when using the browser back button to save their changes. I am currently using the 'popstate' event listener, which works well, however once the user has confirmed the message to say they're about to leave th...
I am working on my jquery script to save the contents in the history so I can go back to the previous page and next page. I have got a problem with my code because it will not save the html content as it will only save the url and change the url.  He...
When I enter a URL in the address bar manually (by typing it), popstate is hijacking it before I can process it via another function.  I'm using an AJAX call to test if the file exists before doing anything else:  let directUrl = location.hash.su...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.