Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    834
    Likes Received:
    29
    Trophy Points:
    178
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice