<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Location widget works fine on locahost but not on shared hosting environment in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317779#M81961</link>
    <description>&lt;P&gt;Thank you so much for your response Andy. I found the problem and it was my own silly mistake.&lt;/P&gt;&lt;P&gt;I woke in the middle of the night with the sudden realisation that I had used FTP to upload the calling PHP script and not the .js file with the new code in it.&lt;/P&gt;&lt;P&gt;Doh! But at least I now have a working solution.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 05:42:02 GMT</pubDate>
    <dc:creator>DavidShearan</dc:creator>
    <dc:date>2023-08-11T05:42:02Z</dc:date>
    <item>
      <title>Location widget works fine on locahost but not on shared hosting environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317660#M81955</link>
      <description>&lt;P&gt;I am using the ARCGIS SDK tools version 4.18 on the website I have recently inherited. I had an earlier question about grabbing the user location and retrieving the lat/long to fill out HTML input fields. I had brilliant support from the community (thank you Joel Bennett for your help with that &lt;LI-MESSAGE title="Retrieval of latitude/longitude when Locate button clicked" uid="1317064" url="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317064#U1317064" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel provided me with the code which resolved the problem immediately except it only works on my localhost and not on the live website. The website is secured with an SSL certificate and the URL has the https:&amp;nbsp; prefix.&lt;/P&gt;&lt;P&gt;I contacted the hosting support team but they have no explanation for why it is not working. Has anyone had any experience with this. Are there any configuration options anywhere which would explain this?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 20:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317660#M81955</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T20:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Location widget works fine on locahost but not on shared hosting environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317718#M81956</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/708286"&gt;@DavidShearan&lt;/a&gt; the Locate widget uses the native &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" target="_self"&gt;JavaScript Geolocation API&lt;/A&gt;. Most issues you run into will be related to your browser capabilities when using that API.&lt;/P&gt;&lt;P&gt;Give this test app a try and let us know if there are any errors in the browser's developer console. You can change the CSS and SDK version to 4.18: &lt;A href="https://codepen.io/andygup/pen/jOQjqOo?editors=1100" target="_blank"&gt;https://codepen.io/andygup/pen/jOQjqOo?editors=1100&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geolocation-error.png" style="width: 600px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77900i8DCAFE2B73FCB90C/image-size/large?v=v2&amp;amp;px=999" role="button" title="geolocation-error.png" alt="geolocation-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 22:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317718#M81956</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-08-10T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Location widget works fine on locahost but not on shared hosting environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317779#M81961</link>
      <description>&lt;P&gt;Thank you so much for your response Andy. I found the problem and it was my own silly mistake.&lt;/P&gt;&lt;P&gt;I woke in the middle of the night with the sudden realisation that I had used FTP to upload the calling PHP script and not the .js file with the new code in it.&lt;/P&gt;&lt;P&gt;Doh! But at least I now have a working solution.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 05:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-widget-works-fine-on-locahost-but-not-on/m-p/1317779#M81961</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-11T05:42:02Z</dc:date>
    </item>
  </channel>
</rss>

