Select to view content in your preferred language

esri legend control "Display mixed content?" prompt in Ie

1147
4
08-15-2012 08:24 AM
tomw
by
Emerging Contributor
I am using https mapservices in esri legend control. Our https site works in Firefox perfectly, but in IE we got  this prompt displayed. It may because of images in the esri legend control are using http url[ATTACH=CONFIG]16977[/ATTACH]

Please advice.
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
To enable mixed content in IE9 you can change the security settings :

  1. In Internet Explorer, click the Tools button, and then click Internet Options.

  2. Click the Security tab, and then click the Custom Level button.

  3. In the Security Settings dialog box, scroll to the Display mixed content setting in the Miscellaneous section, and then click Enable.

  4. Click OK in the Security Settings dialog box, and then click OK to exit Internet Options.

That being said, it's strange you get this message with the legend.
From ArcGIS 10SP1, the legend is provided by the map service and the legend images are encapsulated in the json answer.

Which ArcGIS server version are you using?

To better understand what happens, I suggest you use fiddler to look at the requests sent to the server.
0 Kudos
tomw
by
Emerging Contributor
Thanks Dominique for your response.

I am using ArcGIS10. Fiddler has be showing "http://www.arcgis.com/sharing/tools/legend?soapUrl=https://myservicer/ArcGIS/rest/services/myservice...".

It includes "http" and "https" which is caused IE to popup this prompt " Display mixed content". The legend control from Esri has http but my service has https.

You are right to change setting in IE. but It would be nearly impossible to tell everyone to make these changes for their own browsers.

Please let me know if am wrong. If i am right, any work around to solve this?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
You are right to change setting in IE. but It would be nearly impossible to tell everyone to make these changes for their own browsers.

Please let me know if am wrong. If i am right, any work around to solve this?


The easiest way would be to migrate the server to 10SP1 or 10.1. But probably not easy either.

Else I don't think the legend control can work with the secured arcgis.com REST end point.
You could adapt the legend control by yourself (should not be that difficult). Source code is here :http://esrisilverlight.codeplex.com/

Sorry no better ideas for now.
0 Kudos
tomw
by
Emerging Contributor
Thanks Dominique,

I have downloaded this legend source code from esri site. That would make my life easier if your silverlight team could let me know how to avoid this "http://www.arcgis.com/sharing/tools/legend?soapUrl=" and a reason needs this "http://www.arcgis.com/clientaccesspolicy.xml
" when to use this legend control from a local ESRI.ArcGIS.Client.Toolkit.dll.

Cheers,


Tom
0 Kudos