Firefox: Using an FCKeditor in an AJAX UpdatePanel

by Brad 14. January 2008 14:50

I've been using the .NET version of FCKeditor for some time, but recently changed the page layout, resulting in the FCKeditor instance now residing in an AJAX UpdatePanel. All was fine while using IE, but when I tested it in Firefox I noticed that the changed content in the FCKeditor wasn't getting saved to the database. It turns out its a JavaScript issue that effects Firefox and Safari.


I've been unable to find the perfect solution but in the meantime I discovered the following code does the trick - but unfortunately causes Firefox/Safari users to see a full post back - not just what's in the UpdatePanel.

if (Request.Browser.Browser.ToLower().Contains("firefox") || Request.Browser.Browser.ToLower().Contains("safari"))
        {
            ScriptManager sm = Master.FindControl("ScriptManager1") as ScriptManager;
            sm.RegisterPostBackControl(btnMySubmitButton);
        }

If anyone knows a better way to fix it please let me know!

Tags:

ASP.NET AJAX | C#

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar