newbie trouble with IE not showing iframe

62 views
Skip to first unread message

David Crane

unread,
Aug 14, 2013, 9:06:53 AM8/14/13
to flex-...@googlegroups.com
Hi,

I'm hoping somebody can help me. I have the iframe working fine with Firefox in my flex 4 app.
But, IE 9 does not display anything at all. vxmode is set to opaque. I have the iframe inside an mx:Box.
I have assigned an id to the iframe as well. And, I have searched for a solution but couldn't find one.
Does anybody have a clue?

David Crane

unread,
Aug 14, 2013, 9:25:41 AM8/14/13
to flex-...@googlegroups.com
Correction, wmode not vxmode - it was already opaque anyway.

David Crane

unread,
Aug 14, 2013, 9:33:11 AM8/14/13
to flex-...@googlegroups.com
Chrome also works fine.It's just IE.


On Wednesday, August 14, 2013 9:06:53 AM UTC-4, David Crane wrote:

David Crane

unread,
Aug 14, 2013, 1:11:14 PM8/14/13
to flex-...@googlegroups.com
In Firefox, I get both row2Box1_IF0 and row2Box1_IF1 div's.
But, IE only receives row2Box1_IF0. The id is actually row2Box1_IF.
Anybody?

Joe Sands

unread,
Aug 14, 2013, 1:41:34 PM8/14/13
to flex-...@googlegroups.com, Brian J. Ackermann
Sometimes, within an iFrame, you may be accessing a different protocol than outside of an iFrame, https outside, vs. http within.  Certain browsers have higher security when this happens, disallowing the rendering of the page inside the iFrame.  In fact, in the IE9 browser settings, you may find a security setting that allows you to allow cross-server access.  Set this to "enable" and you'll see the rendering show up.  You can even access lower security IE9 browsers and see your rendering.

That's the workaround.  It's not what you want to do if you're having multiple users access your site from the outside.  To require them to all change their IE9 security settings would be a bad PR move.  Thus the interwebs world has created some magical, mamby pampy, incantational, sleight of hand called P3P.

Add this to the top of the page that you are trying to access within the iFrame:

HttpContext.Current.Response.AddHeader("p3p", "CP=\IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT NOI DEV PSAi COM NAV OTR STP IND DEM CAO\")

Of course, I just copied and pasted a line of code from a VB.Net class, adding a header to the page.  The concept is the same for whatever language you are using.

Google P3P for more information too.

Hope this works for you!

-Joe


--
--
[ Flex-IFrame - http://code.google.com/p/flex-iframe/ ]
---
You received this message because you are subscribed to the Google Groups "Flex-IFrame" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flex-iframe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

David Crane

unread,
Aug 14, 2013, 2:24:32 PM8/14/13
to flex-...@googlegroups.com
It turns out there were 2 spots that set wmode.
Reviewing the page created I noticed that it was set to window.
I found the 2nd spot and changed it and it works fine.
I don't know why it is in 2 spots. Oh well.

David Crane

unread,
Aug 14, 2013, 2:27:23 PM8/14/13
to flex-...@googlegroups.com, Brian J. Ackermann
The protocol tip is good too. For development, https is disabled but this could be a problem I might encounter later.
And, you're right - requiring lower security is not acceptable.
I'll be sure to check that out.thanks
Reply all
Reply to author
Forward
0 new messages