Search code examples
htmlhyperlinkhrefcommerce

Links Not Doing Anything


I'm making a rather simple online store page at http://pyentertainment.com/store.html integrating PayPal for payments, and just when I thought I was done I noticed none of the hyperlinks seem to do anything. By this I mean when I click them (I'm using Chrome and the same happens on other browsers too), on the status bar where it normally says "loading www.xyz.com" it changes to something for a fraction of a second and then disappears, not loading a new page; it's way too fast for me to catch what it says. This happens to the links on the nav bar and to the social media links on the right.

Some context: When you click on an item, the page dims and an iframe comes up showcasing said product, with PayPal cart buttons. View cart/Add to cart open a new tab, but if you close them by clicking "continue shopping" they throw another error which although I'm not too concerned about might be the cause of the problem; I know iframes can be iffy to work with. I'd appreciate any help. The links work on the rest of the domain, too.

Thanks in advance!


Solution

  • Thanks guys, the issue ended up being that I had the entire body to check for clicks, and if the user clicked outside the item display box while it was on, dim it out, like this:

    $('body').click(function(event)
    {
      if(!$(event.target).is('#productDisplay'))
      {
        $("#darkenBackground").fadeOut();
        $("#productDisplay").attr('src','buy/loading.html');
        return false;
      }
    });
    

    I got rid of that feature and instead added a little close button to do the same thing. The links work now! Thank you all for your help :)