Skip navigation
kochukavi
Currently Being Moderated

Problem with IE while loading a url using IFrame

Nov 15, 2011 10:00 PM

Hi,

 

Can you please provide solution for the following problem?

 

I used IFrame to access a different URL in <mx:Script>  from one page. Code exerpts are as follows:

 

          String url = 'https://' + ipaddress;

          var fr:IFrame = model.dictionary[ipaddress]; // dictionary is of type flash.utils.Dictionary

             if (fr == null)

                {

                    fr = new IFrame(ipAddress);

                    fr.source = url;

                    fr.percentHeight = 100;

                    fr.percentWidth = 100;

                    fr.visible = true;

                    fr.includeInLayout = true;

                    model.dictionary[ipaddress] = fr; // points the IFrame to dictionary

                   

                    if (model.currentframe != null)

                    {

                        model.currentframe.visible = false;

                        model.currentframe.includeInLayout = false;

                    }

                   

                    model.currentframe = fr;

                    this.removeAllChildren();

                    this.addChild(fr); // adds this frame as child for parent component

                }

 

The same code works well with Firefox but throws up an error with IE. It is due to security settings in IE and if the security settings are made low, the new page is loaded.

 

Have you ever come across such a problem? Is there any workaround for this problem?

 

For some other sites with https, chrome also showed up some problem while loading the page

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points