+ Reply to Thread
Results 1 to 13 of 13

Thread: Legends not showing in Internet Explorer 8

  1. #1
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Legends not showing in Internet Explorer 8

    I have a Flex Application that works great in Internet Explorer 9 and Firefox. However with Internet Explorer it does not show the colors for the legends, just the values. Do you guys could give me any ideas what I need to change in my code so that IE 8 shows the legend colors? You can see on the image attached that the colors show correctly on the map but the legend does not show the colors for each values.
    I am attaching the mxml and the html and the print screen. Many thanks!!!Click image for larger version

Name:	TFSMap.png
Views:	83
Size:	273.2 KB
ID:	13340
    Attached Files

  2. #2
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    Do you guys have any idea about solutions or reasons causing this problem with Internet Explorer?

  3. #3
    YungKai Chin
    Join Date
    Jul 2011
    Posts
    64
    Points
    1
    Answers Provided
    1


    0

    Default Re: Legends not showing in Internet Explorer 8

    (A shot in the dark)

    Have you tried enabling compatibility view on IE8?

  4. #4
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    How do I do that?

  5. #5
    YungKai Chin
    Join Date
    Jul 2011
    Posts
    64
    Points
    1
    Answers Provided
    1


    0

    Default Re: Legends not showing in Internet Explorer 8

    There is a button in your browser window next to the address bar.
    I don't know if it is going to help or not since I have not had chance playing with the dynamic legend.

    Btw, you can read the in-depth info from MS here.
    http://blogs.msdn.com/b/ie/archive/2...lity-view.aspx

  6. #6
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    I tried that but it did not work. Now another website I created is also having issues in Internet Explorer and not firing the creationcomplete event. I uninstalled ie 9 and installed ie 8 and I dont see the problem in my computer so I am guessing there might be an issue with the settings in the IE 8 in the other computer. Here is an article that is helping me:

    http://support.microsoft.com/kb/308260

  7. #7
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Smile Re: Legends not showing in Internet Explorer 8

    But thank you YungKai for your interest in helping me. I will keep you posted if I find a solution!

  8. #8
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    It seems that the problem is not only in IE 8 but in all browsers that are not on my machine.

    When I debug I get a warning:


    warning: unable to bind to property 'value' on class 'Object' (class is not an IEventDispatcher)


    So I am guessing the problem is that the legend cannot find the binding expressions myURL.selectedItem.value that is inside the dynamic layer's url property, which changes according to the selected item in the combobox called my URL. It seems that the problem might be that I need to bind that variable, however I might have to use an Object Proxy . I tried to do that but it did not work. Here is my code snippet that is not working:

    [Bindable] public var myURLvalue:ObjectProxy = new ObjectProxy(measures);
    [Bindable] public var myURLObject:Object = myURL.selectedItem;
    [Bindable] public var value:String = myURLObject.value

    Any ideas?

  9. #9
    Ivan Bespalov
    Join Date
    Apr 2010
    Posts
    334
    Points
    306
    Answers Provided
    51


    0

    Default Re: Legends not showing in Internet Explorer 8

    Ionara,

    here we talked about bindable attributes. (with links and samples)
    * About data binding (adobe)

    here we discuss about legend (with links and samples)

    forum search is here
    Ivan

    Samples

  10. #10
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    Thank you for the links Ivan, but I already tried to bind the myURL.selectedItem.value and it did not work. How can I make the legend to be updated with the changes in the dynamic layer's url?

    <esri:ArcGISDynamicMapServiceLayer id="dynamicLayer" name=" "
    url = "http://tfs-24279/ArcGIS/rest/services/RADIO_BUTTONS/{myURL.selectedItem.value}/MapServer"
    alpha="1"
    load="loadLayerName()"
    Last edited by ionara_wilson; 04-17-2012 at 08:21 AM.

  11. #11
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0
    This post is marked as the answer

    Default Re: Legends not showing in Internet Explorer 8

    I found a solution! I went to the flash player security settings and added the folder I had the data and the problem was solved. So I think the legend problem appeared just because the website has not been published on the web yet. I hope it helps anybody with the same problem.

  12. #12
    suhana suhana
    Join Date
    Jul 2012
    Posts
    20
    Points
    0
    Answers Provided
    0


    0

    Default Re: Legends not showing in Internet Explorer 8

    Quote Originally Posted by ionara_wilson View Post
    I found a solution! I went to the flash player security settings and added the folder I had the data and the problem was solved. So I think the legend problem appeared just because the website has not been published on the web yet. I hope it helps anybody with the same problem.
    Hi, can you elaborate a little on this please.
    I am having similar problem where in internet explorer 8, the legend does not show for secured map services which use arcgis server token security through proxy.ashx and I am using java script api.

  13. #13
    ionara wilson
    Join Date
    Nov 2011
    Posts
    650
    Points
    10
    Answers Provided
    41


    0

    Default Re: Legends not showing in Internet Explorer 8

    Hi Suhana

    I found the legends were not showing when I was accessing the app from my local server (computer), but when I published in the real production server the legend was there. I think to make it work on your computer you have to go here:

    http://www.macromedia.com/support/do...manager04.html

    And add the folder where your project is so the flash player regocnizes the drive and folder. It worked for me. Good luck!!!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts