[ic] Textarea problem - need help

Kevin Walsh interchange-users@interchange.redhat.com
Sun May 12 23:53:02 2002


> 
> I want to check now that old value in db and new value are same. I tried
> following:
> 
> [if type=value term="support_comments" op="ne" compare="[scratch
> new_support_comments]"]
> Support request summary have been modified.<br>
> Old value: <b>[scratch new_support_comments]</B><br>
> New value: <b>[value support_comments]</b><Br><br>
> [/if]
> 
> Regardless if I have changed someting or not in this textarea I always
> get message that values are not same, even if they seem to me 100% same.
> Imust be something in whay which textarea is saved to db and then pulled
> out from db.
> 
Try changing:

    <b>[scratch new_support_comments]</b>

...to:

    <b>![scratch new_support_comments]!</b>

...and the same for the [value] - just as a test.

You may be able to see if there's any leading/trailing white-space.
If not then do a "view source" in your browser and check in there.

If the [value] has leading/trailing white-space then you can use the
filter="strip" arg to clear it.  If the [scratch] has white-space
then you can use the [filter] tag with op="strip".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/