<?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 Error: xhr cancelled in IE8 using esri.request in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-xhr-cancelled-in-ie8-using-esri-request/m-p/417527#M38406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oddly enough, I just saw &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/73376-Firefox-Firebug-Error-XHR-Cancelled" rel="nofollow noopener noreferrer" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; right now and found I am having the same error with something I am working on right now, but a different scenario, so I made a new thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This only happens in IE8, which is what I need to support in my office. It works fine in Chrome and FF, so I'm not sure what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using esri.request to submit parameters to a non-arcgis web service. However, in IE8 it is appending the parameters the application pages URL and refreshing the page when I send the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a dijit/form to collect and submit data on a (non-submit) dijit.form.button. I can tell it's not the form submitting because I can see my console debugs before the request happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the onClick event handler for my form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
_onFlowTraceClick: function(e) {
 e.preventDefault();
 e.stopPropagation();

 var form = registry.byId('flowTraceForm');
 var data = form.getValues();
 console.log('values?', data);
 var _this = this;

 var url = '/csdapi/api/flow/trace';
 var params = {
&amp;nbsp; id: data.name,
&amp;nbsp; direction: data.direction,
&amp;nbsp; districts: data.nodetype === 'districts'
 };

 var len = data.status.length; // an array of checkboxes
 while(len--) {
&amp;nbsp; params[data.status[len]] = true;
 }

 console.log('params for trace', params); // I see all debug consoles up to here

 var request = esri.request({
&amp;nbsp; url: url,
&amp;nbsp; content: params
&amp;nbsp;&amp;nbsp; });

 request.then(function(response, io) {

&amp;nbsp; console.log('got a response!', response, io);
&amp;nbsp; response.bubble = true;
&amp;nbsp; response.cancelable = true;
&amp;nbsp; _this.emit('flowTraceResults', response);

 });

}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When it reaches the esri.request() line it appends the parameters to the pages URL, so my app can be &lt;/SPAN&gt;&lt;A href="http://testgis/demo" rel="nofollow noopener noreferrer" target="_blank"&gt;http://testgis/demo&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and it turns into &lt;/SPAN&gt;&lt;A href="http://testgis/demo?id=999&amp;amp;nodetype=local&amp;amp;direction=up" rel="nofollow noopener noreferrer" target="_blank"&gt;http://testgis/demo?id=999&amp;amp;nodetype=local&amp;amp;direction=up&lt;/A&gt;&lt;SPAN&gt; and my page refreshes. It's just weird.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*edit, it looks like it might be the form.getValues() causing an issue, because the params it adds to my URL match the form and not the custom params I make.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have a proxy.ashx set up with mustMatch=false for dev purposes and I can see it working in Chrome and FF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else seen this happen before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:53:29 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-12-11T18:53:29Z</dc:date>
    <item>
      <title>Error: xhr cancelled in IE8 using esri.request</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-xhr-cancelled-in-ie8-using-esri-request/m-p/417527#M38406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oddly enough, I just saw &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/73376-Firefox-Firebug-Error-XHR-Cancelled" rel="nofollow noopener noreferrer" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; right now and found I am having the same error with something I am working on right now, but a different scenario, so I made a new thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This only happens in IE8, which is what I need to support in my office. It works fine in Chrome and FF, so I'm not sure what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using esri.request to submit parameters to a non-arcgis web service. However, in IE8 it is appending the parameters the application pages URL and refreshing the page when I send the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a dijit/form to collect and submit data on a (non-submit) dijit.form.button. I can tell it's not the form submitting because I can see my console debugs before the request happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the onClick event handler for my form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
_onFlowTraceClick: function(e) {
 e.preventDefault();
 e.stopPropagation();

 var form = registry.byId('flowTraceForm');
 var data = form.getValues();
 console.log('values?', data);
 var _this = this;

 var url = '/csdapi/api/flow/trace';
 var params = {
&amp;nbsp; id: data.name,
&amp;nbsp; direction: data.direction,
&amp;nbsp; districts: data.nodetype === 'districts'
 };

 var len = data.status.length; // an array of checkboxes
 while(len--) {
&amp;nbsp; params[data.status[len]] = true;
 }

 console.log('params for trace', params); // I see all debug consoles up to here

 var request = esri.request({
&amp;nbsp; url: url,
&amp;nbsp; content: params
&amp;nbsp;&amp;nbsp; });

 request.then(function(response, io) {

&amp;nbsp; console.log('got a response!', response, io);
&amp;nbsp; response.bubble = true;
&amp;nbsp; response.cancelable = true;
&amp;nbsp; _this.emit('flowTraceResults', response);

 });

}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When it reaches the esri.request() line it appends the parameters to the pages URL, so my app can be &lt;/SPAN&gt;&lt;A href="http://testgis/demo" rel="nofollow noopener noreferrer" target="_blank"&gt;http://testgis/demo&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and it turns into &lt;/SPAN&gt;&lt;A href="http://testgis/demo?id=999&amp;amp;nodetype=local&amp;amp;direction=up" rel="nofollow noopener noreferrer" target="_blank"&gt;http://testgis/demo?id=999&amp;amp;nodetype=local&amp;amp;direction=up&lt;/A&gt;&lt;SPAN&gt; and my page refreshes. It's just weird.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*edit, it looks like it might be the form.getValues() causing an issue, because the params it adds to my URL match the form and not the custom params I make.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have a proxy.ashx set up with mustMatch=false for dev purposes and I can see it working in Chrome and FF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else seen this happen before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-xhr-cancelled-in-ie8-using-esri-request/m-p/417527#M38406</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error: xhr cancelled in IE8 using esri.request</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-xhr-cancelled-in-ie8-using-esri-request/m-p/417528#M38407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My widget template had the following as the html template for my button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;button data-dojo-type="dijit.form.Button" data-dojo-attach-point="buttonWidget"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data-dojo-attach-event="onClick:_onFlowTraceClick"&amp;gt;Trace&amp;lt;/button&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to add button="type" to that or it defaults to a type of submit, which only seems to affect IE at least version 8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I just needed to write it down to work it out. Maybe this will help someone else that comes across this problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-xhr-cancelled-in-ie8-using-esri-request/m-p/417528#M38407</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T18:53:32Z</dc:date>
    </item>
  </channel>
</rss>

