hashchange is a DOM window event that is fired when the URL's fragment identifier changes.
hashchange is a DOM window event that is fired when the URL's fragment-identifier changes. Use this tag for questions related to this event and its related event handler onhashchange.
I'm trying to create an SPA website with JQuery. I know how to use history.pushState and $(window).on('popstate') but i have a few questions. Currently i have a router.js file which handles the popstate event and the navigation links. I place the…
Hi I am building this website: http://www.freiheitmedia.com/en/. It is build with the Themify Ultra theme.
My goal is to get rid of the #something part in the url when scrolling or clicking on a link.
I need to do it with JavaScript/jQuery because…
I am using hashchange to navigate a site with content being shown/hidden. Problem is, I also want to have a page jump using an anchor tag. This breaks the site and displays the initial content. I can't seem to find a workaround for this.
Is…
I'm relatively new to ember I've come across a scenario in which a class name should remove from the body tag while the window location changes and I figured out some code snippet to do so.
Ember.$(window).on('hashchange',function(){
…
I have a problem with an Ajax app that I'm trying to get working with the browser's Back and Forward buttons. I am using the jQuery History plugin to enable the browser history.
The app consists of a page of products. There is a sort bar that…
I am in the process of building a single page application, I wish to use History.js for managing the applications state. I have it working as desired as far as working with clicking the links and the view being routed accordingly. The issue is when…
I've been using this code to change part of my page using the hashchange function:
$(document).ready( function() {
window[location.hash.substring(1, location.hash.length)]();
});
$(window).on('hashchange', function()…
In my backbone.js project, I need a method which triggered only when window.location.hash change. I found some alternative solution for my problem as here.
Also, I can solve this problem by creating a event in my backbone view initialize function as…
Is there any event I can subscribe to, and how, to be able to monitor URL change (including hash change)?
Currently I do this with an setInterval() method, and check every second if URL has changed...
But there must be some more efficient way I…
I am having problem of detecting change on my url , problem is that , that i use same first part of url after # ,example
mySite.com/masterPage.html#pageView=employee&employeeCode=10
If i listen for changes with window.onhashchange = function(); ,it…
I have hotel booking website with a search page with following filters:
https://i.stack.imgur.com/jl37B.png
I want to implement browser back functionality for filters here.
For example, a person visits website:
1) Applies filter for 5 star rating-…
Is there any way I can change the URL or add more history to the "back button" without having to refresh the entire page?
My application is AJAX based and I'd like to add some "undo" events to history so that the user can simply hit back and retain…
This is my url:
DOMAIN-NAME/#city=13&pc=13&car=18.26+2.97
Now when user clicks browser back, the query string parameter gets removed one by one, like:
First browser back:
DOMAIN-NAME/#city=13&pc=13&car=18.26
Second browser…