Treehouse: Grow your CSS skills. Land your dream job.

JavaScript works on local not on live server

  • # August 27, 2012 at 4:32 pm

    js works fine on my local apache
    once I copy it to live server it get screwed

    serious help needed as this never happened to me !
    what could cause this ?

    # August 27, 2012 at 4:35 pm

    here is my web

    screenshots to compare as I see it



    # August 27, 2012 at 4:46 pm

    Do you see these JS errors in your console?

    Failed to load resource: the server responded with a status of 404 (Not Found)
    Failed to load resource: the server responded with a status of 404 (Not Found)
    Uncaught TypeError: Object [object Object] has no method 'krioImageLoader' main.js:3
    # August 27, 2012 at 6:06 pm

    The location of the JS is not correct. Use the absolute URL to the files and everything will work fine (I guess).

    # August 28, 2012 at 2:57 am

    hi guys, I tried both
    nothing worked for me

    instead of long post here I made a video – 04:15
    where I explain and show what it does and does not do

    no fear :)
    I speak English, use quality microphone, so the audio is good and video is in HD

    # August 28, 2012 at 4:03 am

    problem solved guys …


    problem was that Windows is fine with upper / lowercase mixed letter
    on the hosting is linux running it which settings were case sensitive and for some silly reason I had those 2 files with uppercase .JS at the and of the file names

    put lowercase works fine now

    # August 28, 2012 at 7:24 pm

    It’s always those tiny mistakes that makes debugging a very annoying job… Happy you found it! Nice website btw!

    # August 29, 2012 at 1:20 am

    only if it was my work
    this is mere ThemeForest bought theme adjusted for my needs

    # August 29, 2012 at 3:08 am

    @krysak4ever: Then I’ll make it: Nicely picked theme ;)!

    # August 29, 2012 at 4:04 am

    it is silly though :)

    I do make websites but when it comes to my very own wedding (that guy there is me)
    I am so busy at work that I have to buy a theme to get at least something up and running for the guests as info web

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.