Ready to get started?Download WordPress


Anchor Javacsript not working in chrome only... (6 posts)

  1. mixmastermichael
    Posted 1 year ago #

    Hi there, so this is a weird one... I have a wordpress site that I built, where it's supposed to have sliding anchors. It works fine in every browser, BUT chrome.

    This page has the source code for it... when you take the source code and just test it locally on your computer, it works fine... just not when actually uploaded to the web. Does anyone know what could be causing the issue?

    To better explain - if you click on the anchor links on the left side, it's supposed to slide to the anchor point. But in chrome it doesn't do anything. However, if you take the source code and run it locally on your machine, it works fine in chrome. weird.


    Thanks - any help would be greatly appreciated.

  2. maxlapides
    Posted 1 year ago #

    Well...it works for me in Chrome :)

  3. mixmastermichael
    Posted 1 year ago #

    hmm weird, thanks for checking. You on a mac or pc? I am on a mac and it's not working... tried on my home computer too (also mac)

  4. maxlapides
    Posted 1 year ago #

    I'm on a Mac!

  5. mixmastermichael
    Posted 1 year ago #

    Hmm!!! now I'm really confused haha

  6. maxlapides
    Posted 1 year ago #

    Oh this might be the issue: jQuery doesn't appear to be loading properly. It's trying to load jQuery at http://uchscareers.org/js/jquery.js, but that page returns a 404.

    Other 404 errors on your page:

    If you fix up those 404s, I'll bet it will work reliably!

    I highly suggest you let Google host jQuery for you. For reasons and more explanation, check this out: http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/

    In the future, to troubleshoot issues like this, I highly suggest Webkit developer tools (comes with Safari and Chrome): https://developers.google.com/chrome-developer-tools/docs/overview

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.