Questions tagged [html5-history]

The HTML5 History API allows programmatic manipulation of the browser's history through JavaScript, providing a method of managing the user's history stack when creating web applications.

The HTML5 History API allows programmatic manipulation of the browser's history through JavaScript, allowing interaction with the browser's history as though it is the user.

Useful documentation:

585 questions
0
votes
2 answers

Any way to detected change made in the DOM by Angularjs?

In jQuery, I'm trying to detect change made in the DOM by AngularJS, is this possible? I already got a AJAX and history change listener, but these doesn't seem to detect change.
0
votes
0 answers

history.back() does not refresh page on android brower

I have 2 pages A and B. I have a link to redirect A to B and there is a history.back() in B back to A. I put a alert at the beginning of A. When I test it on desktop browser the alert works, but when I test it on android browser the alert does not…
ItsJack
  • 253
  • 2
  • 3
  • 10
0
votes
2 answers

HTML5 pushState with Backbone.js router not working on specific server but working on others

Been pulling my hair out over a certain issue. I can't seem to find out why my pushState router is not working on our development server while it works perfectly on 2 other real servers (staging and client's live domain) and it also works for my…
DrewT
  • 4,671
  • 2
  • 34
  • 53
0
votes
1 answer

browser back button go back follow a custom url list?

I have seen history.js, it seems just work on current page: such as: www.mysite.com www.mysite.com/?state=1 www.mysite.com/?state=2 www.mysite.com/?state=3 www.mysite.com/?state=4 www.mysite.com/?state=3 It can make back button back follow state…
Mithril
  • 10,339
  • 13
  • 81
  • 121
0
votes
1 answer

HTML5 History redirect like 301

Lets say my site has some 301 redirects. If I had no ajax navigation, and I click link http://example.com/page1 (from main page) - it would answer 301 redirect to http://example.com/page2. So now if I press "back" button in browser I would go to…
mr. Pavlikov
  • 942
  • 4
  • 6
0
votes
1 answer

How to make a cache manifest and HTML5 history work together

I have a single page web app that use HTML5 history. I recently added a cache manifest to make it works offline. The URL of the app is domain.com/app and when it load the cache manifest make this URL able to go offline. But once the app is ready,…
Nicolas BADIA
  • 5,065
  • 6
  • 39
  • 45
0
votes
0 answers

Angular location change resetting browser history

I'm watching for a change on $locationChangeStart, if the user is on Step2, and they try to go to Step1 via the browser back button, I have successfully interrupted this, displayed an alert, and will continue navigating back only if the user presses…
0
votes
2 answers

Infinite Ajax Scroll: Difficulties With History

I just purchase Infinite Ajax Scroll after having difficulties trying to implement replaceState() with infinite scroll. I have managed to get everything set up to work correctly with the following code: function infiniteScroll() { // Init…
seansean11
  • 731
  • 2
  • 8
  • 16
0
votes
1 answer

HTML5 History API Back Button

I'm using an ajax call to update a part of my page, it's for a search function. When I do the search, I update the url. Example: mysite.com/products becomes mysite.com/products?search=blabla But when I press the back button, only the url changes and…
Ken Bonny
  • 548
  • 1
  • 5
  • 25
0
votes
1 answer

How to use the History API or history.js to change the "active" link appropriately when the page is refreshed or when the back button is pressed?

My active (opened) links are highlighted with JS .