<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IE9 &#8211; Kodono</title>
	<atom:link href="https://blog.kodono.info/wordpress/tag/ie9/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.kodono.info/wordpress</link>
	<description>Pour tous les technophiles</description>
	<lastBuildDate>Wed, 18 Jan 2012 19:10:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>IE9 en mode standard et Sharepoint&#8230; bug du bouton OK [Sharepoint]</title>
		<link>https://blog.kodono.info/wordpress/2012/01/18/ie9-en-mode-standard-et-sharepoint-2003-bug-du-bouton-ok-sharepoint/</link>
					<comments>https://blog.kodono.info/wordpress/2012/01/18/ie9-en-mode-standard-et-sharepoint-2003-bug-du-bouton-ok-sharepoint/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 17:59:16 +0000</pubDate>
				<category><![CDATA[Navigateur]]></category>
		<category><![CDATA[Niveau expert]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[IE9]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sharepoint]]></category>
		<guid isPermaLink="false">http://blog.kodono.info/wordpress/?p=892</guid>

					<description><![CDATA[[niveau expert] Si vous passez IE9 en mode standard avec Sharepoint vous risquez d&#8217;avoir le bouton OK des formulaires qui ne fonctionne plus&#8230; Après avoir debuggué le bazar j&#8217;ai découvert qu&#8217;un des fichiers (&#8220;/_layouts/1033/form.js&#8221;) Javascript utilise document.frames() au lieu de document.frames[]. Si cela fonctionne sur les anciens navigateurs, ce n&#8217;est plus le cas pour IE9 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[niveau expert]</p>
<p>Si vous passez IE9 en mode standard avec Sharepoint vous risquez d&#8217;avoir le bouton OK des formulaires qui ne fonctionne plus&#8230; Après avoir debuggué le bazar j&#8217;ai découvert qu&#8217;un des fichiers (&#8220;/_layouts/1033/form.js&#8221;) Javascript utilise <code>document.frames()</code> au lieu de <code>document.frames[]</code>. Si cela fonctionne sur les anciens navigateurs, ce n&#8217;est plus le cas pour IE9 en mode standard, du coup il retourne un &#8220;Function expected&#8221;.</p>
<p>Il y a deux fonctions incriminées <code>RTE_GetEditorIFrame()</code> et <code>RTE_DD_GetMenuFrame()</code>. Il suffit d&#8217;utiliser les commentaires conditionnels pour indiquer que lorsqu&#8217;on utilise IE9 alors on remplace ces deux fonctions par :</p>
<pre class="brush: javascript">function RTE_GetEditorIFrame(strBaseElementID)
{
	var ifmEditor=null;
	var doc=document;
	if ((null !=doc.frames) &#038;& (doc.frames.length==0) &#038;& (doc.parentWindow.parent !=null))
	{
		doc=doc.parentWindow.parent.document;
	}
	if ((null !=doc.frames) &#038;& (doc.frames.length > 0))
	{
		var ifmContainer=doc.getElementById(RTE_GetEditorIFrameID(strBaseElementID));
		if (ifmContainer !=null)
		{
			ifmEditor=doc.frames[RTE_GetEditorIFrameID(strBaseElementID)];
		}
	}
	return ifmEditor;
}
function RTE_DD_GetMenuFrame()
{
	var ifmMenu=null;
	var elemMenu=RTE_DD_GetMenuElement();
	if (null !=elemMenu)
	{
		if (document.frames.length > 0)
		{
			ifmMenu=document.frames[g_strRTETextEditorPullDownMenuID];
		}
		else
		{
			if ((document.parentWindow !=null) &#038;& (document.parentWindow.frames !=null))
			{
				ifmMenu=document.parentWindow.parent.document.frames[g_strRTETextEditorPullDownMenuID];
			}
		}
	}
	if (null==ifmMenu)
	{
		if (g_fRTEFirstCallToGetMenu)
		{
			g_fRTEFirstCallToGetMenu=false;
			return null;
		}
	}
	return ifmMenu;
}
</pre>
<p>Ainsi <code>document.frames</code> est bien appelé comme un objet et non comme une fonction !</p>
<p><strong>A noter cependant qu&#8217;il existe des tonnes de bugs avec IE9 et Sharepoint 2003/2007. Il est donc conseillé d&#8217;utiliser le mode de compatibilité en IE8</strong> si vous ne voulez pas passer des heures à trouver l&#8217;origine des problèmes et à les corriger :</p>
<pre class="brush: html">&lt;meta http-equiv="X-UA-Compatible" content="IE=8"/></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2012/01/18/ie9-en-mode-standard-et-sharepoint-2003-bug-du-bouton-ok-sharepoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
