Revision: 31122
Updated Code
at October 19, 2010 14:04 by terrencewood
Updated Code
/** * Make fragment identifiers work with base */ jQuery(function($) { $("a[href^=#]").click(function(e) { e.preventDefault(); window.location.hash = this.href.substr(this.href.indexOf("#") + 1); }); }); /** * Make fragment identifiers work with base and jqueryui-tabs */ jQuery(function($) { $("a[href^=#]").not(".ui-tabs-nav a").click(function(e) { e.preventDefault(); window.location.hash = this.href.substr(this.href.indexOf("#") + 1); }) });
Revision: 31121
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 30, 2010 15:29 by terrencewood
Initial Code
/** * Make fragment identifiers work with base */ jQuery(function($) { $("a[href*=#]").click(function(e) { e.preventDefault(); window.location.hash = this.href.substr(this.href.indexOf("#") + 1); }); });
Initial URL
Initial Description
Initial Title
Make fragment identifiers work with base
Initial Tags
javascript, html, jquery
Initial Language
JavaScript