Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript WordPress Internal Link AJAX functionality Re: WordPress Internal Link AJAX functionality

#72538
rickylamerz
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…