I don't know why this isn't working and I've been trying everything.
Most of the tutorials online are using Ajax which I'm not and I've tried adapting it but I can't get anything to work. I'm using has bang urls and all the content is loaded in the index page it's just being shown and hidden dynamically. I could really use some help getting the history working.
Here is my script...
History.Adapter.bind(window, 'statechange', handleStateChange); $('nav a').on('click',function(e) { var target = $(this).attr('href'); History.pushState(null, null, target); }); function handleStateChange() { alert("State changed..."); } If I could just get the alert to happen I can go from there but the alert never fires and I don't know why.