Comments on: Pushing and Popping with the History API https://stevefaulkner.github.io/html5doctored/history-api/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: cjramki https://stevefaulkner.github.io/html5doctored/history-api/#comment-39631 Wed, 13 Nov 2013 14:05:20 +0000 http://html5doctor.com/?p=3897#comment-39631 There is any option to back button tracking.
If the user click on the browser back button, show some confirm box. Is it possible with this?

]]>
By: Stan https://stevefaulkner.github.io/html5doctored/history-api/#comment-38564 Wed, 09 Oct 2013 20:14:09 +0000 http://html5doctor.com/?p=3897#comment-38564 hashbang is for SEO purpose not like the hack you said
https://developers.google.com/webmasters/ajax-crawling/docs/getting-started

Also using hash url is pretty common in AJAX-driven SPA to maintain the state of the app

]]>
By: Ramón Ramos https://stevefaulkner.github.io/html5doctored/history-api/#comment-38267 Fri, 20 Sep 2013 07:39:47 +0000 http://html5doctor.com/?p=3897#comment-38267 Thanks for the tut!

In your clickhandler function you have something wrong in your post code (it’s ok on kittieland though):

1. The event object is declared on the arguments as “e”, not “event”.

2. There is no updateContent(); anywhere! I had to check your working source to see if I was doing something wrong.

But wait, there’s more! …some updates too:

3. Chrome 19+ starts to mingle with the state property of the event and stuff.

As a tip: I used a lame setTimeout() to bind the event listener in order to skip Chrome’s eagerness to pop its state.

Thanks again :)

]]>
By: Blog Content Writing Services https://stevefaulkner.github.io/html5doctored/history-api/#comment-34148 Mon, 06 May 2013 04:29:07 +0000 http://html5doctor.com/?p=3897#comment-34148 When I initially commented I clicked the “Notify me when new comments are added”
checkbox and now each time a comment is added I get several emails
with the same comment. Is there any way you can remove me from that service?
Bless you!

]]>
By: Kevin Ashcraft https://stevefaulkner.github.io/html5doctored/history-api/#comment-34094 Wed, 01 May 2013 19:59:23 +0000 http://html5doctor.com/?p=3897#comment-34094 Adding to the list,
thanks Mike!

Those adorable kitten’s helped me setup some pushing and popping functions on the soon-to-be released new version of my site!

Thank you!!!

]]>
By: Shashank Duhan https://stevefaulkner.github.io/html5doctored/history-api/#comment-32256 Tue, 19 Mar 2013 04:29:52 +0000 http://html5doctor.com/?p=3897#comment-32256 Thanks you made my day. :)

]]>
By: Visual https://stevefaulkner.github.io/html5doctored/history-api/#comment-31797 Thu, 28 Feb 2013 15:47:18 +0000 http://html5doctor.com/?p=3897#comment-31797 Hi
Wondering what is the php code behind to figure out what page you are on?

Is is possible to post the full source

Thanks!

]]>
By: George https://stevefaulkner.github.io/html5doctored/history-api/#comment-31720 Mon, 25 Feb 2013 07:16:58 +0000 http://html5doctor.com/?p=3897#comment-31720 Thanks Mike explaining in a simple way. Just wondering, when I check https://stevefaulkner.github.io/html5doctored/demos/history/page on IE9 or IE8, history seems working as it works on chrome. However, as you said history API lacks support on IE9 and less, then how is that working. I also, don’t see that you’ve used history.js

]]>
By: Harrison https://stevefaulkner.github.io/html5doctored/history-api/#comment-29442 Fri, 14 Dec 2012 00:07:55 +0000 http://html5doctor.com/?p=3897#comment-29442 http://stackoverflow.com/questions/13869174/html5-history-popstate-tutorial

]]>
By: Harrison https://stevefaulkner.github.io/html5doctored/history-api/#comment-29441 Fri, 14 Dec 2012 00:06:53 +0000 http://html5doctor.com/?p=3897#comment-29441 Hi Mike,

Thanks for this tutorial,
I’m following the article to make a basic practice, but stuck in popstate. I can’t figure how to use it make the back button work.

here is link and code example

Demo
$(‘.subject’).click(function(){
$.ajax({
url: ‘index.php?id=’ + $(this).attr(‘rel’),
success: function(html){
$(‘.content’).append(html);
}
});
var pageurl;
pageurl = ‘index.php?id=’ + $(this).attr(‘rel’);
if(pageurl != window.location){
window.history.pushState({path: pageurl}, “”, pageurl);
}
return false;
});

index.php
<?php
if($_GET['id']){
…
print"”;
}
else{
…
print””
}
?>

grateful for any help,

Harrison

]]>