The HTML5 History API allows a web page to manipulate the contents of the history stack in order to dynamically update the URL and respond to the back button.
Questions tagged [pushstate]
635 questions
0
votes
1 answer
history states in ajax calls
I am using jquery ajax calls to change content in a div by clicking links, but my url always the same i mean its not changing by clicking the links just content changes.
so i find history.pushStates which helped me to change the url by clicking…

Ejderha Katili
- 41
- 1
- 7
0
votes
1 answer
Correct file structure on pushstate / ajax website
I'm trying to convert my site to a full html5 ajax website with pushstate and popstate controlled locations.
My current file structure is as…

CoreyRS
- 2,227
- 3
- 26
- 44
0
votes
1 answer
How to Handle Page Reloads
As I understand it the "conventional" way to handle page reloads is to duplicate functionality and presentation on the web stack using its controllers, views, and models. I'd appreciate insight on other (possibly better) ways to handle these…

Ari
- 4,121
- 8
- 40
- 56
0
votes
1 answer
History API, refresh and bookmark
pushState doesn't make a request, it just changes the url and stores a new history entry. Thinking about this concept, it's impossible to refresh or bookmark because the server will always do a request. A server-side solution is…

Caio
- 3,178
- 6
- 37
- 52
0
votes
1 answer
Bookmarking and page reloads with Backbone.js and pushState
I've been trying to get various routes bookmarkable within my app, and this is possible if I don't have pushState enabled. A user can enter mysite.com/#/view/30 and the proper view renders.
However, if I were to enable pushState and go to…

Smokin Joe
- 443
- 5
- 15
0
votes
2 answers
historyjs / HTML5 pushState "data" argument not saving properties of object that are functions
I'm attempting to use pushState in my web application like so:
//default settings
var ds = {
path: window.module.Globals.prototype.base_url, //location misc variable for my app
type: 'POST',
dataType: 'html',
…

Casey Flynn
- 13,654
- 23
- 103
- 194
0
votes
1 answer
Backbone.js router callback to fire on all URL segments except 1 specific url segment
I'm creating my first application that uses the Backbonejs router.
http://backbonejs.org/#Router
I'm curious, is it possible to define a route that will fire for every url segment except one?
In my case, I don't want this callback to fire if the…

Casey Flynn
- 13,654
- 23
- 103
- 194
0
votes
1 answer
Change URL for autoscroll (pushstate?)
I am currently using this code I found to autoscroll to anchors:
$(function() {
$('nav a[href*=#]').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop:…

Reuben
- 2,701
- 6
- 31
- 47
0
votes
1 answer
Dynamic urls with jQuery pushState and shared headers/footers
I'm working on a little website endeavor and am trying to use jQuery + ajax to dynamically load in information. As of right now I have a home page ~/home and a profile page ~/profile. These two pages share the same header and footer and I load…

user1455278
- 1
- 1
0
votes
3 answers
History API doesn't work (Back/Forward)
In the link below, I made an history.pushState example.
But if you click on the links and then try to go back or forward, you will see that don't works. You know tell me why? There are good practices? Can you help me?
http://jsfiddle.net/BQPgh/

Caio Tarifa
- 5,973
- 11
- 46
- 73
0
votes
1 answer
backbone router as /en/#xyz and not /#en/xyz
I'm trying to do something pretty simple.
Here's the scenario:
I have a whole site working great with pushstate enabled browsers. The site works off the basis that the language is the "actual page" for instance:
/en/whatever/etc = index.en.php with…

Alex
- 3,732
- 5
- 37
- 59
-1
votes
1 answer
how history.pushState works to prevent from reloading pages
i'm trying to change urls without reloading the browser , i've used history.pushState it show the new url but not reloading the page till i'll reload the browser manually
function change_url(url) {
history.pushState(null, null, url);
} …

artiest
- 554
- 5
- 20
-1
votes
2 answers
AJAX using pushState()
I found wonderfull article, which explain how to use pushState with AJAX.
https://moz.com/blog/create-crawlable-link-friendly-ajax-websites-using-pushstate
But I can't figure out how organized "content.php" file. In comments this question is often…

WhatIsHTML
- 548
- 1
- 7
- 19
-1
votes
1 answer
Change URL (with pushState) using Infinite Scroll in WordPress
I've set up the infinite scroll from here and it works: https://github.com/pklauzinski/jscroll. Additionally I would like to change the URL in the browser address bar but I can't get it working. There is a similar solution on…

drH
- 1
- 1
- 3
-1
votes
1 answer
I do not work the history.pushState
See if you can lend me a hand, I tried to apply the history.pushState jquery code does not work, I know very little about how to implement the history.pushState and beg a little help in this regard. Then I hit my code...

pTRONICA
- 59
- 10