Questions tagged [hashchange]

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 changes. Use this tag for questions related to this event and its related event handler onhashchange.

Resources

Related Tags

241 questions
0
votes
1 answer

Understanding Jquery SPA Implementation

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…
0
votes
1 answer

“hashchange” doesn't fire in Wordpress

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…
0
votes
1 answer

Anchor Tags Breaking Page That Has Hashchange URL

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…
AdamDallas
  • 67
  • 7
0
votes
0 answers

javascript: Resolving deeplinking issue

I have a tab component say in a HTML strcture
Parag Diwan
  • 3,007
  • 2
  • 19
  • 37
0
votes
1 answer

Ember-CLI - Detect hash-change function in ember

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(){ …
Vivekraj K R
  • 2,418
  • 2
  • 19
  • 38
0
votes
2 answers

Enabling the Back button to act as an 'undo' button in an Ajax app

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…
0
votes
1 answer

History.js usage for single page applications

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…
AlphaG33k
  • 1,588
  • 1
  • 12
  • 24
0
votes
1 answer

hashing and pushstate in jquery ajax

I have 3 buttons
New Message
Inbox
Sent
and the…
rji rji
  • 697
  • 3
  • 17
  • 37
0
votes
0 answers

Jquery hashchange automaticly use all functions from file

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()…
Rob
  • 35
  • 2
0
votes
2 answers

How to use "hashchange" event in backbone.js event delegates?

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…
Abu Hanifa
  • 2,857
  • 2
  • 22
  • 38
0
votes
0 answers

Detect URL change (including hashchange) in Firefox AddOn

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…
kecman
  • 813
  • 3
  • 14
  • 34
0
votes
2 answers

Detect specific part of url change

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…
noitse
  • 1,045
  • 9
  • 27
0
votes
0 answers

Using hashchange or html5 history api for maintaining filter applied by the user on e commerce website?

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-…
Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98
0
votes
4 answers

What are my options for changing the querystring on a URL, and updating browser history?

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…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
1 answer

Trigger event on browser back and force refresh or reload the page with new url

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…
Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98