Hidden FreeTextBox error in Firefox

I have a problem with the FreeTextBox rich text editor on my ASP.NET site. The problem occurs when I access the site using firefox, and I have an instance of freetextbox in a hidden div. A hidden div can also be an AJAX tab bar. The actual problem is that when the page loads, it throws an uncaught exception (firebug shows the StoreHtml () function) and stops the postback!

Is there any problem and solution for it?

thank

+3
source share
4 answers

I recently met a similar jQuery UI tabbed issue. What you need to do is change CSS for hidden tabs to something like:

.hiddentab
{
     position: absolute;
     left: -99999999999999;
}

, . , hiddentab .

, Firefox : none.

+2

, - . , , javascript OnSubmit , , .

"", . FreeTextBox , . , true :

function OvrdSubmit()
{
    var ftbSubmit=document.forms[0].onsubmit;
    if (typeof(ftbSubmit) == 'function')
    {
        document.forms[0].onsubmit = function()
        {
            try{ftbSubmit();}
            catch(ex){}
        }
    }

    // We are ok
    return true;
}

ASP.NET, Page_Load():

ClientScript.RegisterOnSubmitStatement(this.GetType(), String.Concat(this.ClientID, "_OnSubmit"), "javascript: return OvrdSubmit();");

, , .

+2

Firefox , : none. , , div zIndex, div , . .

0

, , FreeTextBox AJAX, , , !

For what it's worth, I'm close to a solution (I think) by setting the .ReadOnly FTB attribute to true, and then returning it to false on controlo.PreRender. It works the first time the page loads, so now I have to figure out how to implement this correctly for each postback.

I will send a solution if I find it!

Thank you anyway!

0
source

Source: https://habr.com/ru/post/1698970/


All Articles