I'm trying to add window.onpopstate on one of the pages on my site, but nothing is happening. I put this script on the page:  <script type="text/javascript">   window.addEventListener('popstate', function(event) {     if (ev...
In iOS 7 Safari there are now two ways to navigate back/forward -- using the traditional back/forward button arrows at the bottom or by swiping from the edge of the screen. I'm using an animation to transition between pages in my ajax app, but I...
Is there any way I can get the new page's url when the window.popstate is fired?  window.onpopstate(function (){     newPageUrl = //get the new page's URL })...
I'm trying to use "pushState" and the "popstate" event to trap Back button navigation, however, while the popstate event triggers correctly in Firefox, it doesn't trigger in Chrome (Version 76.0.3809.87 (Official Build) (64-bi...
How to cache page loaded via ajax with pushState URL so that reloading page from server can be avoided?  For instance,  page 1:  /foo.html. click button, send ajax request, get response and update the page. History pushState as a new page /bar.html....
I have an AngularJS app that makes a call to an API and returns a bunch of data that users can then filter by tags for greater granularity in the results. Each time a tag is clicked to filter the data, the app makes a new $http.get() call, and the UR...
I tried to use popstate function but I have an error :   Uncaught RangeError: Maximum call stack size exceeded  Step by step :   Step 1 : I clicked on a li. addToHistory() works great.  Step 2 : I clicked on backtohome button. addToHistory() works gr...
Using Ajax and trying to create a popstate event handler on the actual Ajax page using the .document object:  document.addEventListener("popstate", myPopState);   Unfortunately this does not ever seem to trigger.  My intention being that afte...
I am changing the url depending upon an AJAX call.   window.history.pushState("", "", ''+newUrlWithParameters);   Also I have a popstate event written within my JS.  $(window).on('popstate', function(e) {    //... do t...
I know that there are many topics related to chrome and popstate event but after upgrading chrome to version 35 I encountered a new one.  This is the case:  I've got a listing page with categories and filters, after You choose category, page etc....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.