Forums

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

Home Forums JavaScript JavaScript works on local not on live server

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #39534
    aoeui
    Participant

    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 ?

    #108551
    aoeui
    Participant

    here is my web
    http://daniel-hanka.cz/

    screenshots to compare as I see it

    apache
    http://i.minus.com/iSMu46VOOBp0A.png

    live
    http://i.minus.com/iA1Pshiqx4BqY.png

    #108552
    stinkyboomboom
    Participant

    Do you see these JS errors in your console?

    Failed to load resource: the server responded with a status of 404 (Not Found) http://daniel-hanka.cz/js/jquery.scrollTo-min.js
    Failed to load resource: the server responded with a status of 404 (Not Found) http://daniel-hanka.cz/js/jquery.krioImageLoader.js
    Uncaught TypeError: Object [object Object] has no method 'krioImageLoader' main.js:3
    #108556
    Vermaas
    Participant

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

    #108587
    aoeui
    Participant

    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

    http://www.screenr.com/fTf8

    #108592
    aoeui
    Participant

    problem solved guys … http://daniel-hanka.cz/

    example1.js
    example2.js
    example3.JS
    example4.JS
    example5.js

    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

    #108627
    Vermaas
    Participant

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

    #108663
    aoeui
    Participant

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

    #108677
    Vermaas
    Participant

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

    #108683
    aoeui
    Participant

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.