tags:

views:

78

answers:

1

Hi all

I have a custom sharepoint aspx form that has an InputFormTextBox with RichText property set to true.

In browser when I change the color of the text I receive a javascript error:

Message: 'g_elemRTELastTextAreaConverted' is null or not an object Line: 2509 Char: 3 Code: 0 URI: http://myhost/_layouts/1033/form.js

what can be the reason for this

+1  A: 

Ok I found it.

In my code behind i used to refrence the scripts like this:

string script2="<script type=\"text/javascript\"language=\"javascript\"
src=\"/_layouts/1033/init.js\"></script>";
string script3="<script type=\"text/javascript\" language=\"javascript\" src=\"/_layouts/1033/core.js\"></script>";
string script4="<script type=\"text/javascript\" language=\"javascript\" src=\"/_layouts/1033/form.js\"></script>";

            cs.RegisterStartupScript(this.GetType(), "key2", script2, false);
            cs.RegisterStartupScript(this.GetType(), "key3", script3, false);
            cs.RegisterStartupScript(this.GetType(), "key4", script4, false);

when I removed these references everything worked fine thanks

Mina Samy