The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Javascript not working

Discussion in 'General Discussion' started by nathangotlib, Apr 22, 2014.

  1. nathangotlib

    nathangotlib Registered

    Joined:
    Apr 22, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello everyone,

    I am new to CPanel hosting so I was wondering if you could help me. I just hosted my new website

    - Removed -

    I had been playing with the code on jsbin and other platforms and everything was running fine, but when I hosted it the javascript seems to be unresponsive. Not sure what to do. This is only the second website I've put online and first time I encountered this problem. Thanks in advance and I hope you can help me!

    Kind Regards,
    Nathan
     
    #1 nathangotlib, Apr 22, 2014
    Last edited by a moderator: Apr 22, 2014
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    JavaScript is client-side code, which means it is interpreted and executed by your browser. Your server therefore only serves the code and included files to the browser and plays no other part in how it functions.

    Your question would perhaps be better suited on a website like Stack Overflow, as this issue is in no way related to cPanel.
     
  3. nathangotlib

    nathangotlib Registered

    Joined:
    Apr 22, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I managed to make it work! I had forgotten to do the document ready function at the start of the javascript file.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
Loading...

Share This Page