Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    41

    Default Javascript broken after move

    Hello

    I recently moved a fairly simple website from an old host to our hosting service.

    Everything moved over well, except the javascript stopped working. The link below, for instance, is supposed to jump from cartoon to cartoon with javascript:

    http://naenministries.org/chip/index.shtml

    Does anyone have any ideas why it might have stopped working?

    thanks

    Roy

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    JavaScript code is executed client-side, so it will have no bearing whatsoever on the host you are using.

    However in order for the client to receive the JavaScript code in order to execute it, you have to have the relevant code in the correct place on the server, as defined by your HTML.

    Code:
    <script src="../assets/js/swapimage.js" type="text/JavaScript" language="JavaScript"></script>
    <script src="../assets/js/swapimagerestore.js" type="text/JavaScript" language="JavaScript"></script>
    <script src="../assets/js/preloadimages.js" type="text/JavaScript" language="JavaScript"></script>
    <script src="../assets/js/showHideLayers.js" type="text/JavaScript" language="JavaScript"></script>
    <script src="../assets/js/findobject.js" type="text/JavaScript" language="JavaScript"></script>
    <script src="../assets/js/jumpMenu.js" type="text/JavaScript" language="JavaScript"></script>
    Make sure all these files, and most likely the last one, are where they should be.

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    41

    Default

    Thanks for the detailed help. I think you are right about that last JS page, there is some broken code on it. Thanks for scanning the pages to help find the problem!

    Roy

Similar Threads & Tags
Similar threads

  1. Move domain to another partition [moved]
    By Kailash1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-07-2009, 05:46 AM
  2. Having javascript run based on country ip [moved]
    By estado3 in forum New User Questions
    Replies: 4
    Last Post: 07-04-2006, 03:40 PM
  3. Mail filters broken after server move
    By dc2447 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-30-2005, 12:00 PM
  4. Account Move Tool Seems To Be Broken
    By GordonH in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-21-2004, 11:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube