X-UA-Compatible and frames
-
8 aprilie 2012 11:54
Hello! Is it possible for each frame in a frame-based site to use a different rendering mode?
Here is the situation: I have to maintain a huge intranet website, which uses frames (I know, I know, frames are evil, but there is nothing I can do at this point). The top frame contains a menu, which has to work in compatibility mode. The bottom frame displays the actual content, which has accumulated over more than 10 years, so some of it breaks completely in the standards mode. Obviously I would like to use the standards mode for all the new content that I develop, and change the older content step-by-step, when time allows. The problem I am facing is that I don’t seem to be able to use “<meta http-equiv="X-UA-Compatible" content="IE=edge" />” on a page that is displayed inside a frame. This setting gets overwritten by the setting used on the frameset page, so I lose my beautiful rounded corners :-(. The same page looks fine outside of the frameset.
Is there a workaround for this problem? All the pages are on the same domain, of course. Many thanks in advance!
Toate mesajele
-
8 aprilie 2012 17:43
Hi,
no...
use jQuery corners... they work in all browser modes.
Regards.
Rob^_^
- Marcat ca răspuns de Allen Li - MSFTModerator 3 mai 2012 01:52
-
8 aprilie 2012 19:17
Thank you! It's a rather silly decision, I think, that frames cannot be rendered differently... I am sure I am not alone facing this problem.
In the meantime, I have found something called CSS3 PIE (http://css3pie.com/), which appears to have fixed the corners issue with just one additional line in the stylesheet.
- Marcat ca răspuns de Allen Li - MSFTModerator 3 mai 2012 01:52
-
8 aprilie 2012 21:22
Hi,
the x-ua meta is meant to be a tempory workaround until legacy sites/pages are updated to 'Standards' markup. with some thought and css hacks 'standards' documents will render consistantly in IE5, 6, 7 and 8 and 9 much the same. The differences will be in which css rules the browsers support... as you have found with rounded corners. The jQuery corners plugin actually falls back to VML for MSIE browser versions that do not support border-radius.
legacy intranet sites are forced to IE7 emulation mode with the IE Compatibility View setting "Display Intranet sites in Compatibility View"
that should force your frameset page to use IE7 emulation and subsequently all its children the same Document Mode (Emulate IE7).
Alternatively place the domain of your frameset page in the IE Compatibility View list if your company has no other legacy intranet sites still requiring Compatibility View.
but IE9 will still block xss communication between domains.....there is also IE security zone settings determining how content from different security zones is negotiated. Ensure you are using the default Security Zone settings (click "reset all zones to default") and that your client workstations are configured as such with Group Policy.
Regards.
Rob^_^