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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

javascript Geolocation not working on cpanel

Discussion in 'General Discussion' started by blakekantai, Sep 26, 2017.

  1. blakekantai

    blakekantai Registered

    Joined:
    Sep 26, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kenya
    cPanel Access Level:
    Root Administrator
    How can I run javascript geolocation on cpanel?It is working on xammp localhost but not on cpanel
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This is typically an issue with how the script is configured as opposed to an issue with the cPanel software. Can you provide some more details about how it's configured, what's not working, and how you are testing it?

    Thank you.
     
  3. blakekantai

    blakekantai Registered

    Joined:
    Sep 26, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    kenya
    cPanel Access Level:
    Root Administrator
    The javascript is working ok. HTML DOM(document.getEle....) and javascript alert is working fine.However, the navigator.geolocation function is not working.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This seems like an issue with your script as opposed to the cPanel software. Do you notice any specific error messages when this happens?

    Thank you.
     
Loading...

Share This Page