text_field_with_auto_complete() - problem

hi,

I also faced the problem of appended whitespaces, I did a fix in controls.js of scriptaculous by writting

this.element.value = (value.replace(/^\W+/,‘’)).replace(/\W+$/,‘’);

you will find this around line 250…260

hope this helps

regards gaurav