<?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: problems solving a route in IE, but not in Firefox? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66327#M5825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first thing I would do is run the JavaScript code through JSLint or JSHint to catch any errors.&amp;nbsp; Some errors will be ignored by one browser but not another.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 20:24:52 GMT</pubDate>
    <dc:creator>JeffJacobson</dc:creator>
    <dc:date>2012-11-20T20:24:52Z</dc:date>
    <item>
      <title>problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66326#M5824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone had troubles solving a route on a routeTask between 2 points in IE where it worked fine in Firefox?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided I needed a proxy set up because of the # of characters in my request meant I had exceeded the # or characters allowed.&amp;nbsp; Then I thought my proxy set up itself was the problem and I didn't have it set up quite right.&amp;nbsp; Now I am seeing my traffic going through the proxy, I'm still having no luck solving my route.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have defined my route parameters with two stops.&amp;nbsp; They are in the same map projection.&amp;nbsp; They are not the same point (It occurred to me to check!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My routeParams are defined as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams = new esri.tasks.RouteParameters(); &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.stops = new esri.tasks.FeatureSet(); &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.returnRoutes = true; &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.returnDirections = true; &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.directionsLengthUnits = esri.Units.MILES; &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.outSpatialReference = map.spatialReference;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My routeTask is defined as &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;routeTask = new esri.tasks.RouteTask("http://servicesbeta.esri.com/ArcGIS/rest/services/Network/USA/NAServer/Route");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My start location is a geocoded point, which I'm changing to webMercator.&amp;nbsp; My end location is a feature returned earlier from a featureLayer.selectFeatures.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.stops.features = [];&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Add the starting location to the map &amp;nbsp;&amp;nbsp;&amp;nbsp; var fromSymbol = new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([105, 153, 0])); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; startLoc = new esri.Graphic(esri.geometry.geographicToWebMercator(new esri.geometry.Point(currentLocation, new esri.SpatialReference({ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid : 4326 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }))), fromSymbol, { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name : dojo.byId('loc').textContent, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source: pointSource, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteName : feature.attributes.FACILITY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultLocationsLayer.add(startLoc); &amp;nbsp; routeParams.stops.features.push(startLoc); &amp;nbsp;&amp;nbsp; &amp;nbsp; //&amp;nbsp; params.stops.features[0] = startLoc;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Add the ending location to the map &amp;nbsp;&amp;nbsp;&amp;nbsp; var toSymbol = new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([204, 0, 0])); &amp;nbsp;&amp;nbsp;&amp;nbsp; var endLoc = new esri.Graphic(feature.geometry, toSymbol, { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name : feature.attributes.FACILITY, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source: "selected by buffer", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteName : feature.attributes.FACILITY &amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp; resultLocationsLayer.add(endLoc); &amp;nbsp;&amp;nbsp;&amp;nbsp; routeParams.stops.features.push(endLoc);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can put a breakpoint in and see I have two stops defined as features.&amp;nbsp; I thought maybe my function was trying to execute before the route was solved.&amp;nbsp; So I changed to to listen for the event onSolveComplete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeTask.solve(routeParams); &amp;nbsp; //&amp;nbsp; routeTask.solve(params, function(solveResult) { &amp;nbsp; dojo.connect (routeTask, "onSolveComplete", showRoute); &amp;nbsp; dojo.connect (routeTask, "onError", routeError);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works just fine in Firefox. I get a map with two points and a highlighted line showing the route.&amp;nbsp; In IE,&amp;nbsp; it doesn't seem to properly solve my routeTask and just generates the error I set up for the onError event.&amp;nbsp; My complete code attached.&amp;nbsp; I would think I have points in 2 different coordinate systems are something, except for the fact it works just fine in Firefox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66326#M5824</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-11-20T20:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66327#M5825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first thing I would do is run the JavaScript code through JSLint or JSHint to catch any errors.&amp;nbsp; Some errors will be ignored by one browser but not another.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66327#M5825</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2012-11-20T20:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66328#M5826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've not used those before, but when I looked them up and check my code it was all basic formatting stuff.&amp;nbsp; Nothing that focuses in on this particular problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66328#M5826</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-11-20T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66329#M5827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at the response from Fiddler, it says the stops parameters is invalid.&amp;nbsp; It gives me a place to start tomorrow anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66329#M5827</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-11-20T20:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66330#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found it!&amp;nbsp; I was using the find nearby mobile example.&amp;nbsp; The mobile components aren't fully supported in IE8, which is still our default browser.&amp;nbsp;&amp;nbsp;&amp;nbsp; When I studied my start location point closely, I saw that the Name attribute, which was supposed to get getting it's content for one of the mobile components, wasn't finding that value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What looked like "undefined" name attribute value must have been something very strange internally.&amp;nbsp; So that point was not valid after all, causing one of my stops to be bad , which in turn caused the route to fail when trying to solve it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IE 8 did NOT properly interpret &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;dojo.byID('loc').textContent&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; I did not absolutely need to have a attribute of "name" on my point, so I just removed it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; startLoc = new esri.Graphic(esri.geometry.geographicToWebMercator(new esri.geometry.Point(currentLocation, new esri.SpatialReference({ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid : 4326 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }))), fromSymbol, { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source: pointSource, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteName : feature.attributes.FACILITY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 18:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66330#M5828</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-11-21T18:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66331#M5829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;BLOCKQUOTE&gt;schlot;251279 wrote:&lt;BR /&gt;IE 8 did NOT properly interpret &lt;/BLOCKQUOTE&gt;&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dojo.byID('loc').textContent&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;IE is &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;interpreting&lt;/SPAN&gt;&lt;SPAN&gt; that code correctly, the problem is that IE does not support the textContent property in its object model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 08:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66331#M5829</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-22T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66332#M5830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The end result is the same no matter whether use the word "interpret" or&amp;nbsp; "support". Po-tay-to, po-tah-to as far as I'm concerned.&amp;nbsp; It doesn't work.&amp;nbsp; Do you know if it continues to be an issue with the newer version of IE?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66332#M5830</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-11-26T12:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: problems solving a route in IE, but not in Firefox?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66333#M5831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The end result is the same no matter whether use the word "interpret" or&amp;nbsp; "support". Po-tay-to, po-tah-to as far as I'm concerned.&amp;nbsp; It doesn't work.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;With programming, in general, it does matter, details matter...otherwise you end up spending time barking up wrong trees etc.&amp;nbsp; Or just plain old "doing it wrong".&amp;nbsp; There's a difference between a bug and stated functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Do you know if it continues to be an issue with the newer version of IE?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;GIYF...but but it would appear that MS claim it does - &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-gb/library/ie/ff974773(v=vs.85).aspx"&gt;http://msdn.microsoft.com/en-gb/library/ie/ff974773(v=vs.85).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could always try it for yourself, should take all of 30 seconds &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 09:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-solving-a-route-in-ie-but-not-in-firefox/m-p/66333#M5831</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-27T09:13:20Z</dc:date>
    </item>
  </channel>
</rss>

