Home › Forums › JavaScript › WordPress Internal Link AJAX functionality › Re: WordPress Internal Link AJAX functionality
March 18, 2010 at 12:42 pm
#72538
Member
Also internet explorer still glitches the # thingy. Even with this piece of JS:
function hashizeLinks() {
$("a[href^=’"+siteURL+"’]").each(function() {
$el = $(this);
// Hack for IE, which seemed to apply the hash tag to the link weird
if ($.browser.msie) {
$el.attr("href", "#/" + this.pathname)
.attr("rel", "internal");
} else {
$el.attr("href", "#" + this.pathname)
.attr("rel", "internal");
}
});
};
Kinda blows, now I can’t implement it…