<?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: 'Difference'  in 'geometryservice' not working when app is on apache server in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512481#M47762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the JSON object for date '140601' is not present in the JSON file you provided (or the sample app you have running on your own site).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for me, the code fails to call queryTask.execute() when hovering over other dates (because licenceref1 == "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a simpler repro case with a hardcoded call to the geometry service would make it a lot easier to debug and attempt to give you some feedback.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 19:06:21 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2014-05-13T19:06:21Z</dc:date>
    <item>
      <title>'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512473#M47754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing here to enquire whether others who use ArcGIS API for Javascript have also had the following problem, and if so, whether you could advise on a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Problem: The 'difference' method under the 'geometryservice' class works on my machine locally (when I run the javascript from dreamweaver), but when I put the html file on my server and try to access it online, the method does not work and returns the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is puzzling because I have another geometry service - 'buffer', which works on both my local machine and when on the server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other points: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- url sourcing javascript theme: &lt;/SPAN&gt;&lt;A href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"&gt;http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- url sourcing javascript api: &lt;/SPAN&gt;&lt;A href="http://js.arcgis.com/3.9/js/esri/css/esri.css"&gt;http://js.arcgis.com/3.9/js/esri/css/esri.css&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- url sourcing other javascript esri info: &lt;/SPAN&gt;&lt;A href="http://js.arcgis.com/3.9/"&gt;http://js.arcgis.com/3.9/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- link to geometry service api reference page: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice.html"&gt;https://developers.arcgis.com/javascript/jsapi/geometryservice.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice or pointers would be very much appreciated. Please do let me know if you require more information/ code snippets and I would be more than happy to do so. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512473#M47754</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-09T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512474#M47755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi naveen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the error message?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what status code is returned by ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you share a simplified application which demonstrates the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you share the problematic request itself?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512474#M47755</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-12T16:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512475#M47756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John Gravois,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is not an error message when I run the program on the server, the difference method just doesn't execute. I put in an error message into the errback to warn me if the method is even being read - 'difference(geometries,geometry,callback?,&lt;/SPAN&gt;&lt;STRONG&gt;errback?&lt;/STRONG&gt;&lt;SPAN&gt;)'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see an excerpt of the relevant code attached. To illustrate the problem, please hover the mouse over the news article with the date '140601' and title 'Indian companies strike gas in Libya's Ghadames Basin'. I have added alert messages to notify when the correct stages are passed. The total process shouldn't take more than 10 seconds when working. As before, this works on my local machine (using dreamweaver), but not when on the apache server.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for the time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 07:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512475#M47756</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-13T07:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512476#M47757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, if you wish to see an example when the file is on the server, please use: &lt;/SPAN&gt;&lt;A href="http://81.136.156.9/app/excerpt.html"&gt;http://81.136.156.9/app/excerpt.html&lt;/A&gt;&lt;SPAN&gt;. The username is: &lt;/SPAN&gt;&lt;STRONG&gt;guest&lt;/STRONG&gt;&lt;SPAN&gt;, and password is: &lt;/SPAN&gt;&lt;STRONG&gt;password&lt;/STRONG&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 07:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512476#M47757</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-13T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512477#M47758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;naveen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the &lt;/SPAN&gt;&lt;A href="http://81.136.156.9/nigeria/jsonTemp1.json" rel="nofollow noopener noreferrer" target="_blank"&gt;json file&lt;/A&gt;&lt;SPAN&gt; in your application 404s when I try and run here, so i'm not able to run your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that being said in looking at your code i noticed two things that seemed a little irregular.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. why are you instantiating two different geometry service objects?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
gsvc = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); 
gs&amp;nbsp;&amp;nbsp; = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. i think you should either be supplying an anonymous function inline as the callback to difference() or referencing a named function that appears later.&amp;nbsp; right now you're doing both.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
gs.difference(geom11,geom1a,function showCutBuffer(graphic1a1){
//should be either
gs.difference(geom11,geom1a,function(graphic1a1){
...
//or
gs.difference(geom11,geom1a,showCutBuffer);
...
function showCutBuffer(graphic1a1)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512477#M47758</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T22:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512478#M47759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately these amendments do not fix the problem either. I am quite sure it is something specifically to do with how the geometry service class is accessed from a server, but I have no idea what. Do you have geometry service examples which work when on a server which I could test, and then maybe double check where I am going wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512478#M47759</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-13T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512479#M47760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Naveen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you can upload the JSON file used in your sample application I can host it myself and see if I can reproduce the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 16:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512479#M47760</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-13T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512480#M47761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The json file is the following url: &lt;/SPAN&gt;&lt;A href="http://81.136.156.9/app/jsonTemp1.json"&gt;http://81.136.156.9/app/jsonTemp1.json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the username is: 'guest', and password: 'password'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512480#M47761</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-13T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512481#M47762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the JSON object for date '140601' is not present in the JSON file you provided (or the sample app you have running on your own site).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for me, the code fails to call queryTask.execute() when hovering over other dates (because licenceref1 == "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a simpler repro case with a hardcoded call to the geometry service would make it a lot easier to debug and attempt to give you some feedback.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 19:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512481#M47762</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-13T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512482#M47763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 140106 is coming up for me - maybe the html has to be refreshed? I am attaching the json file just incase if that's okay? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 19:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512482#M47763</guid>
      <dc:creator>NubianConsulting</dc:creator>
      <dc:date>2014-05-13T19:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: 'Difference'  in 'geometryservice' not working when app is on apache server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512483#M47764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;your app failed for me, logging the following error in the console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Error {stack: "Error: esri.config.defaults.io.proxyUrl is not set�?�h.hitch (http://js.arcgis.com/3.9/init.js:174:23)", log: undefined, _ssl: undefined, message: "esri.config.defaults.io.proxyUrl is not set."}
 "Error: esri.config.defaults.io.proxyUrl is not set.
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" rel="nofollow noopener noreferrer" target="_blank"&gt;resolving that problem&lt;/A&gt;&lt;SPAN&gt;, the call to difference() seems to execute successfully.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-nbsp-in-geometryservice-not-working/m-p/512483#M47764</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T22:26:00Z</dc:date>
    </item>
  </channel>
</rss>

