Re: problem with color code

  •  03-20-2009, 6:02 AM

    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 Complete Thread