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.
any one can help me i have gallery and every li has data-title, i want to add that value to url, im trying with no luck its always saying undefined, but i have post id and i easily added that to url. any one knows how to pass that data-title…
I am trying to Twitter bootstrap using the accordion and plugin with jQuery plug-in hash change , if use location.hash open page and click other item more times , Before item can't toggle close and keep one open.
have good solution, please help…
Looking for a best practice for the following scenario:
In a traditional webapp, we perform analytics on logs based on http GETs. The project in question leverages HTML5, jQuery and Mustache.js to dynamically render templates from JSONP calls. The…
I am currently using hashchange along with some jquery code to switch between links on my page : bradleyhobbs.com/bodyevolution
However, Instead of the webpage showing as localhost/#home or localhost/#membership, I want the url to show…
You all know how to build AJAX sites with those 300ms trigger for checking anchors (hash links) in URL and then loading proper page with AJAX. But, these anchor links are nothing to search engines =(
I've thought of making some kind of workaround.…
Our company wants to include a LinkedIn Share Button in the news section of our website. It is relatively simple and consists of a carousel that open up the news items individually in Colorbox windows. We want the LinkedIn button to be within the…
Dojo's tutorial calls for using topic.subscribe to catch the onHashChange event - use of topic is heavy and is frowned upon within the organization, is there any way I can use dojo/on to catch and handle onHashChange?
I have 2 web pages(2 different pages on same domain saywww.mysite.a.html and www.mysite.b.html )
In first page I have some check boxes; in second page I have some in input boxes.
In the first page I have a link that takes me to the second…
I've got some kind of loop here, explanation under code.
$(document).ready(function(){
var newHash = "";
$('a').click(function(event) {
var id = $(this).attr('href');
alert(id);
…
I have a function which essentially looks like this:
function scroll(scrollTop) {
$("body,html").animate({scrollTop: scrollTop});
}
And in Backbone routes, I'm trying to use this function to scroll to a position on a page, again, simplified:
var…
So, there is something wrong with my hashchange... It wont trigger
$('form').submit(function() {
var form_data = ($(this).serialize());
window.location.hash = form_data.replace('=','/');
return false;
});
$(window).on('hashchange',…
I've set up a hashchange function on my site, which allows me to switch between 6 different sections on an 'about' page, this works great, it attached the hashes to each section no problem.
The problem I'm having though is when you link to these…
This site: http://jcorps.org/jsuite WORKS in Chrome, changing the content based on a HASH CHANGE, and IE9 seems to be handling the onHashChange, but...
IE9 doesn't execute the "UpdatePage()" function at all or produce an error message of any kind in…
I'm trying to call a function given the function name in the hash string. I have the following code:
$(window).on('hashchange', function() {
//alert(location.hash.substring(1, location.hash.length));
window[location.hash.substring(1,…
My project is composed by 2 html pages:
index.html, which contains the login and the registration form.
user_logged.html, which contains all the features of a logged-in user.
Now, what I want to do is a control if the user is really logged in, to…