problem with color code

Last post 03-20-2009, 6:02 AM by sjthakkar. 2 replies.
Sort Posts: Previous Next
  •  03-12-2009, 4:33 AM 49789

    problem with color code

    when asp.net page 1st load , i am getting following value.
     
    #1div id="gl#5balWrapp#9r"#2
    #1div id="c#5lumn-c#5nt#9nt"#2
    #1h1#2#1#7pan #7tyl#9="c#5l#5r: rgb(0, 0, 255;"#2#1#7pan #7tyl#9="f#5nt-#7iz#9: x-larg#9;"#2#1#7pan #7tyl#9="f#5nt-family: Tah#5ma;"#2#8AV#a Tim#9 #6rd#9r M#5r#9!#1/#7pan#2#1/#7pan#2#1/#7pan#2#1/h1#2
    #1#7pan #7tyl#9="c#5l#5r: #ff0000;"#2#1#7pan #7tyl#9="f#5nt-family: Tah#5ma;"#2#1#7pan #7tyl#9="f#5nt-#7iz#9: xx-larg#9;"#2
    #1/#7pan#2#1/#7pan#2#1/#7pan#2#1/div#2
    #1/div#2
     
    and when i again access that value, it gives me following.
     
    #1div id="gl#5balWrapp#9r"#2
    #1div id="c#5lumn-c#5nt#9nt"#2
    #1h1#2#1#7pan #7tyl#9="c#5l#5r: #00000ff;"#2#1#7pan #7tyl#9="f#5nt-#7iz#9: x-larg#9;"#2#1#7pan #7tyl#9="f#5nt-family: Tah#5ma;"#2#8AV#a Tim#9 #6rd#9r M#5r#9!#1/#7pan#2#1/#7pan#2#1/#7pan#2#1/h1#2
    #1#7pan #7tyl#9="c#5l#5r: #0ff0000;"#2#1#7pan #7tyl#9="f#5nt-family: Tah#5ma;"#2#1#7pan #7tyl#9="f#5nt-#7iz#9: xx-larg#9;"#2
    #1/#7pan#2#1/#7pan#2#1/#7pan#2#1/div#2
    #1/div#2

    How do i get same Default value each time page load???
    Please help.
  •  03-12-2009, 12:02 PM 49805 in reply to 49789

    Re: problem with color code

    1. How did you extract the content from editor?
     
    2. Can you set the following property to false then try again?
     

    Editor.EncodeHiddenValue Property

    By default Cute Editor will encode the value in the Hidden field automatically. You can turn it off by setting this property to "false". If this property is set to false, ValidateRequest="false" in the page directive is required.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-20-2009, 6:02 AM 50121 in reply to 49805

    Re: problem with color code

    i'd try EncodeHiddenValue="false" bt it dident work ..if i wrote defualt value in editor and dont change it at all still it gives me differnt color code each time page load.
     i.e  In javascript function,
     
     var form = document.forms[0];
              var elm;
              for (var i = 0; i < form.elements.length; i++) {
                  elm = form.elementsIdea;
                  if (elm.type == 'text' || elm.type == 'textarea')
                  {
                      if((trim(elm.value) != trim(elm.defaultValue)))
                      {
                            return(true);
                      }
                  }   

    i got value:
    elm.value = <span style="color: #ffff00;"><br /></span>
    elm. defaultValue = <span style="color: #ffff00;"><br /></span>
    Although both are same. it return true all time.

    Please help.
View as RSS news feed in XML