Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    my script works locally but not on the server pleas help me

    hello. i have a problem. i have done web page, with html,css,js. and it works locally but when i upload it on the server it doesn't works. i tried already 3 servers. pleas help me here is the http://nodartest.spacyhost.com/

    doesn't works thumbs hover and links. i think there is something wrong with JS.
    also i'll put here files whithout img
    Attached Files Attached Files

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,247
    Thanks
    203
    Thanked 2,556 Times in 2,534 Posts
    If it works locally but not when uploaded to a server, then the problem is usually files in the wrong directory. Or perhaps problems with UPPER and lower case file names. Or file permissions which should be 755.

    I don't like to say it, but I found the transitions very unattractive. And the links in white are barely visible.


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 01-21-2013 at 05:41 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,191
    Thanks
    80
    Thanked 4,562 Times in 4,526 Posts
    I don't know if it will make a difference, but one thing I see is that the slider is claiming that it does not use jQuery. And yet you are including jQuery on the page. Is it possible that jQuery is interfering with the slider code?

    The image slider seems to work fine, but clicking on a thumbnail does nothing. At least in Chrome.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what should i do, if you can advice me.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    I downloaded a copy of the page and the script started working. I then commented out the JQuery call and it still worked. The download did rename all of the image files and the references in the page, I didn't see anything else change so presumably it has something to do with how the images are named.

    The only other thing I can think of that might make a difference is to move the script tag to the bottom just before the </body> (which is where the script should be anyway).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh it need license. it is written in js code. and its fee is 20$ for a server and there is another price for multi server

  • #7
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,191
    Thanks
    80
    Thanked 4,562 Times in 4,526 Posts
    Then go find another script that doesn't charge a license fee. There are many many many of them.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #8
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    The script at http://javascriptexample.net/anim03.php already does half of what the one that charges a $20 license fee does. It wouldn't take much extra code to get it to handle the thumbnail images as well

    If you let me know exactly how you want the JavaScript to interact with the thumbnails I might consider extending my script to add that functionality.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •