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

238 questions
0
votes
0 answers

Incorrect flash movie behavior inside iframe and frameset in Internet Explorer

I am investigating issue with odd behavior of a flash movie placed in a HTML frameset (or iframe) in the Internet Explorer 9. If open index.html (http://melnishyn.narod.ru/ppt2swf/index.html) the movie shows its first frame for a short time and then…
Maksym
  • 333
  • 1
  • 5
  • 14
0
votes
1 answer

Using hashchange to load dynamic pages not working with secondary nav

Any ideas on why this won't work. I am using the tutorial from CSS-Tricks using AJAX to load pages dynamically. This works fine up until I introduced a secondary navigation on some pages which caused pages to load normally. This is the code I am…
jshjohnson
  • 157
  • 3
  • 13
0
votes
0 answers

Slash Navigation and Jquery

So I've been wondering how sites like google plus and github navigate. for example when you go to plus.google.com and then click profile it will take you to something like plus.google.com/112578301581290773086/posts, but it won't reload the entire…
Steven Frady
  • 1
  • 1
  • 4
0
votes
1 answer

jquery fail on DOM modify made with html()

In my website, I build the page navigation based on hashchange: var hashHome; $(window).bind( 'hashchange', function(e) { var homeClass = "home"; var url = $.param.fragment(); if($('#page-content').hasClass(homeClass)){ hashHome…
tom91136
  • 7,875
  • 11
  • 53
  • 72
0
votes
2 answers

Javascript CSS when the user scrolls to an anchor

I have a website http://www.mitchellfinlay.co.uk/newlake/magazines.html It utilizes a curtain effect, each li element is revealed on scroll or automatically when links are clicked at the top... tempus...talkbusiness etc. What I would like to do is…
finlamit
  • 17
  • 2
0
votes
1 answer

jQuery BBQ split URL state into useable chunks

Trying really hard to understand jQuery BBQ and not doing so well. There are a few things I need to figure out, but I'll try to focus this on what I believe is the most important in hopes that knocking that part out will guide me to solving the…
technopeasant
  • 7,309
  • 26
  • 86
  • 146
0
votes
1 answer

Check if no hashtag is present, hashtag undeclared, no hash

I'm developing this website: http://parkoura.tk/a/sandbox/ I am using an ajax navigation. I have a function called ajax() which is supposed to execute at onload. When it does, I would like it to check first if a hashtag is there. If there is no…
stackOverFlew
  • 1,449
  • 1
  • 30
  • 56
0
votes
1 answer

jQuery load() with ajax site refreshes

I have an ajax site using jQuery, and I am wondering how to go about allowing the user to refresh the page, and have the appropriate content loaded. I have it so that when a user clicks on an element with an href attribute with my website domain,…
user1429980
  • 6,044
  • 2
  • 39
  • 47
0
votes
1 answer

Jquery Hashchange not working properly?

Maybe i am just up too late, but If you click "about us" then start clicking the nav links (if you don't close it) it works just fine...however, when the page loads, ONLY the about us link works correctly. Here is the draft up and running:…
KGB
  • 21
  • 3
0
votes
1 answer

How to use Dynamic loaded content with jquery bbq

First of all, i am new to jQuery. I found that my web application face a problem in which a user is unable to navigate back to the previous page or even refresh the page. It's making it re-direct to the first page of the web app. Here's part of my…
dejiar
  • 1
0
votes
1 answer

How to window.location.hash-change the location, then run a function?

I have a function, say function runSomething() { alert("hello"); } I have window.onhashchange = runSomething; And in my code, I call window.location.hash = "#processsection" runSomething runs, however it runs before the page does to…
antonpug
  • 11,964
  • 27
  • 76
  • 120
0
votes
1 answer

jquery ajax navigation within ajax navigation

I'm using this code for my main site navigation which loads each page via ajax and has fallback. $(function() { var newHash = '', $contentWrap = $("#content-wrap"); $("nav").on("click", "a", function() { window.location.hash…
thom
  • 1,186
  • 3
  • 11
  • 15
-3
votes
2 answers

$.on is not a function

I am getting following error when trying to run my website, Uncaught TypeError: $(...).on is not a function I am not well aware of javascript, hence i dont know what all this code does : $(window).on('hashchange', function(){ var url =…
Igor Martins
  • 1,859
  • 5
  • 28
  • 52
1 2 3
15
16