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

Home Forums JavaScript WordPress Internal Link AJAX functionality

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #28444

    Hi there CSS-TRICKS im kinda new here, I found this screencast about WordPress AJAX thingy really nice and helpfull.

    Now I implemented it and it works like a charm, only problem is I use a lightbox Image viewer. And the links the are used there to pop-up the image are targeted by the js and transformed with a Hash tag. is the site.

    Maybe you guys could tell me how to make sure he doesn’t target that links as internal ones.

    Thanks in advance!

    Rick Lamers


    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…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.