<?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: legend dijit ans secure mapservices : jsapi 2.3 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632706#M59059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm in 10 sp1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My REST console displays 10.01.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've no other idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 13:01:01 GMT</pubDate>
    <dc:creator>Marie-GilSeptfonds</dc:creator>
    <dc:date>2011-07-22T13:01:01Z</dc:date>
    <item>
      <title>legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632697#M59050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My legendDijit works with my non securised mapservices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But doesn't with my securised mapservices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I look the request with firebug the token argument isn't at the fine place in the url.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://extranet.nimes.fr/website/extranet/AGS/geo_agglo21/php/proxy.php?http://extranet.nimes.fr/arcgis/rest/services/secure/PLU_ZONAGES/MapServer?token=xxxxxxxxxxxxxxxxxx/legend&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally it should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://extranet.nimes.fr/website/extranet/AGS/geo_agglo21/php/proxy.php?http://extranet.nimes.fr/arcgis/rest/services/secure/PLU_ZONAGES/MapServer/legend?token=xxxxxxxxxxxxxxxxxx&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody has an idea ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 13:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632697#M59050</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2011-06-01T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632698#M59051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like you are appending both the token value and the "/legend" value to the end of the url and they are happening in the wrong order.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have a line like this in your proxy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(token != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reqUrl = reqUrl + (reqUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "token=" + token;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my guess is that you are appending the "/legend" after generating the proxy url, if you do it first you should be fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632698#M59051</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-06-01T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632699#M59052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in my proxy.php i've this part of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if ($token) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; $targetPath .= (stripos($targetPath, "?") !== false ? '&amp;amp;' : '?').'token='.$token;
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632699#M59052</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2021-12-12T02:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632700#M59053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the $targetPath before and after that statement.&amp;nbsp; My guess is this is where the token is being inserted into the wrong location and you might need to modify that statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632700#M59053</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-06-01T14:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632701#M59054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed, I think the problem is here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 08:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632701#M59054</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2011-06-06T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632702#M59055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the proxy.php test the token (if ($token) {...}) I add this part of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if ($token) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(stripos($parts[1], "/")){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $targetUrl = str_replace('?token='.$token, "", $targetUrl, $count);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; $targetUrl .= (stripos($targetUrl, "?") !== false ? '&amp;amp;' : '?').'token='.$token;
&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where $parts[1] is the result of $parts = preg_split("/\?/", $targetUrl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I test if the query contains a "/".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632702#M59055</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2021-12-12T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632703#M59056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I'm logged in using the token, I don't even see the that the Legend is available under REST. I can see the layers and everything else, but not the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What gives?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 19:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632703#M59056</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2011-07-21T19:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632704#M59057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which AGS version do you have ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632704#M59057</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2011-07-22T06:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632705#M59058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the time of writing, we were using 10.00, as I thought the server already had SP2 installed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But while we were in REST services, I noticed it was 10, so we upgraded to 10.02, SP2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sp2 is now installed but the legend still isn't appearing. We cleared the cache and stopped/started the service, but nothing worked. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 12:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632705#M59058</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2011-07-22T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632706#M59059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm in 10 sp1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My REST console displays 10.01.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've no other idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 13:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632706#M59059</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2011-07-22T13:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632707#M59060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anybody else have any suggestions regarding the legend widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On our development environment, the server is running SP2 without tokens and the legend appears flawlessly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On our production environment, which is a separate server, it is running SP2 with tokens and the legend still isn't appearing. We're able to see it under REST, but "No Legend" keeps appearing where the legend is supposed to be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody have ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're also running JSAPI 2.4&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 14:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632707#M59060</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2011-07-26T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632708#M59061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find out how to correct this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to change the line in my proxy? I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(token != null) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; reqUrl = reqUrl + (reqUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "token=" + token;
&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My legend displays in Chrome, FF and Safari but I get the images missing in IE. I need to try and get this resolved as soon as possible any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632708#M59061</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2021-12-12T02:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: legend dijit ans secure mapservices : jsapi 2.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632709#M59062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There might be another thread regarding this issue, as I had trouble figuring out why the legend in IE wasn't working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyhow, I cannot find my fix. I know it had to do something with this piece of code found in my TOC.js file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(!dojo.isIE &amp;amp;&amp;amp; a.imageData &amp;amp;&amp;amp; a.imageData.length &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; b = "data:image/png;base64," + a.imageData
&amp;nbsp; }else {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(b.indexOf("http") !== 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = this.service.url + "/" + this.layer.id + "/images/" + b
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears it handles IE browsers a little different, so the author had to modify the image connection slightly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also remember changing something to "https" and incorporating a method to use the token in the URL string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-ans-secure-mapservices-jsapi-2-3/m-p/632709#M59062</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2021-12-12T02:55:25Z</dc:date>
    </item>
  </channel>
</rss>

