<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Fixing IE8 XForms support for EPiServer 4.x</title>
	<atom:link href="http://blog.sallarp.com/episerver-xforms-ie8/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sallarp.com/episerver-xforms-ie8/</link>
	<description>Code, Code, Revolution!</description>
	<lastBuildDate>Sat, 17 Dec 2011 11:50:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Erik Nordin</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-15903</link>
		<dc:creator>Erik Nordin</dc:creator>
		<pubDate>Wed, 01 Dec 2010 10:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-15903</guid>
		<description>Thanks, saved me some work. :)</description>
		<content:encoded><![CDATA[<p>Thanks, saved me some work. <img src='http://blog.sallarp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus Ellinge</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-15606</link>
		<dc:creator>Magnus Ellinge</dc:creator>
		<pubDate>Tue, 23 Nov 2010 13:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-15606</guid>
		<description>Thanks for sharing! The EPiServers hotfix does not work in compability view. Told them about looking for Trident in UserAgent and asked when a new hotfix would be available. Anyway my customer uses 1.1, so controladapters is not possible. I added checks in application_beginrequest instead.

I made a new class XFormIE8 with a static instance. Your onload-override I replaced with CorrectXFormData instead.

public bool IsXFormSaving(HttpRequest request) {
   return String.Compare(request.Path, &quot;/edit/EditXForm.aspx&quot;, true)==0 &amp;&amp; String.Compare(request.HttpMethod,&quot;POST&quot;,true)==0;
}
public bool IsIE8(HttpRequest request) {
   HttpBrowserCapabilities browser = request.Browser;
   return browser.Browser == &quot;IE&quot; &amp;&amp; 
				(browser.MajorVersion == 8 &#124;&#124; (browser.MajorVersion == 7 &amp;&amp; request.UserAgent.IndexOf(&quot;Trident&quot;)&gt;0));
}
	
public void CorrectXFormData(HttpRequest request) ...

Again, thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Thanks for sharing! The EPiServers hotfix does not work in compability view. Told them about looking for Trident in UserAgent and asked when a new hotfix would be available. Anyway my customer uses 1.1, so controladapters is not possible. I added checks in application_beginrequest instead.</p>
<p>I made a new class XFormIE8 with a static instance. Your onload-override I replaced with CorrectXFormData instead.</p>
<p>public bool IsXFormSaving(HttpRequest request) {<br />
   return String.Compare(request.Path, &#8220;/edit/EditXForm.aspx&#8221;, true)==0 &#038;&#038; String.Compare(request.HttpMethod,&#8221;POST&#8221;,true)==0;<br />
}<br />
public bool IsIE8(HttpRequest request) {<br />
   HttpBrowserCapabilities browser = request.Browser;<br />
   return browser.Browser == &#8220;IE&#8221; &#038;&#038;<br />
				(browser.MajorVersion == 8 || (browser.MajorVersion == 7 &#038;&#038; request.UserAgent.IndexOf(&#8220;Trident&#8221;)>0));<br />
}</p>
<p>public void CorrectXFormData(HttpRequest request) &#8230;</p>
<p>Again, thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-8193</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Tue, 23 Mar 2010 10:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-8193</guid>
		<description>@Jacob,

I realize what you meant about the nbsp;. The code plugin for wordpress removed it, and it&#039;s very important that the line is correct otherwise it will cause a crash. I Updated the line now.</description>
		<content:encoded><![CDATA[<p>@Jacob,</p>
<p>I realize what you meant about the nbsp;. The code plugin for wordpress removed it, and it&#8217;s very important that the line is correct otherwise it will cause a crash. I Updated the line now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-8062</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 16 Mar 2010 01:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-8062</guid>
		<description>Could you not just force your site to render in compatibility mode by adding this tag to the head of your html?

</description>
		<content:encoded><![CDATA[<p>Could you not just force your site to render in compatibility mode by adding this tag to the head of your html?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-7790</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Fri, 26 Feb 2010 07:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-7790</guid>
		<description>Hi Jacob,

The fix proposed in this post is valid for all versions of EPiServer, however, the method of implementing it using a ControlAdapter is only valid for .NET 2.0. If you have a site running 1.1 just use reflector and pull all code from the XForm editor code-behind from EPiServer and create your own code-behind file with the fix in this post. 

In CMS 5 you should point the ControlAdapter to EPiServer.UI.Edit.XFormEdit.

I don&#039;t really understand what you mean with the nbsp. Where and why would it be missing? The code on this blog is running perfectly in production.

// Björn</description>
		<content:encoded><![CDATA[<p>Hi Jacob,</p>
<p>The fix proposed in this post is valid for all versions of EPiServer, however, the method of implementing it using a ControlAdapter is only valid for .NET 2.0. If you have a site running 1.1 just use reflector and pull all code from the XForm editor code-behind from EPiServer and create your own code-behind file with the fix in this post. </p>
<p>In CMS 5 you should point the ControlAdapter to EPiServer.UI.Edit.XFormEdit.</p>
<p>I don&#8217;t really understand what you mean with the nbsp. Where and why would it be missing? The code on this blog is running perfectly in production.</p>
<p>// Björn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-7773</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Thu, 25 Feb 2010 09:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-7773</guid>
		<description>Thanks for sharing this!

This seems to fix the issue for 4.x as long as it&#039;s running on .Net 2.0&lt; since the .browser-file is supported from that. 

Do you or anyone know how to get this to work for CMS 5? EPiServer.Edit.EditXForm doesn&#039;t exist in CMS 5. I would like to use this as a temporary fix before upgrading.

FYI: The replacement of nbsp (I&#039;m guessing that&#039;s what it is) is missing from the code posted.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this!</p>
<p>This seems to fix the issue for 4.x as long as it&#8217;s running on .Net 2.0&lt; since the .browser-file is supported from that. </p>
<p>Do you or anyone know how to get this to work for CMS 5? EPiServer.Edit.EditXForm doesn&#039;t exist in CMS 5. I would like to use this as a temporary fix before upgrading.</p>
<p>FYI: The replacement of nbsp (I&#039;m guessing that&#039;s what it is) is missing from the code posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahid</title>
		<link>http://blog.sallarp.com/episerver-xforms-ie8/comment-page-1/#comment-7643</link>
		<dc:creator>Shahid</dc:creator>
		<pubDate>Tue, 16 Feb 2010 07:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=816#comment-7643</guid>
		<description>Hi, 

Great work !

FYI: EPiSever Developer Support have already made a hotfix for xForm issue but that only works for cms-4.62. Send a request to support if you want to get hold of that hotfix.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Great work !</p>
<p>FYI: EPiSever Developer Support have already made a hotfix for xForm issue but that only works for cms-4.62. Send a request to support if you want to get hold of that hotfix.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 1/16 queries in 0.008 seconds using disk
Object Caching 323/343 objects using disk

Served from: blog.sallarp.com @ 2012-02-05 04:42:00 -->
