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!


Bookmark with :
Digg It! DZone StumbleUpon Technorati Reddit Del.icio.us Newsvine Furl Blinklist
posted @ Monday, January 14, 2008 2:50 PM | in C# .NET ASP.NET AJAX

Comments

No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  


Please add 1 and 8 and type the answer here: