in del.icio.us header, when i typing a word, the input box is resized. is there any thing similar in prototype/script.aculo.us?
on 2008-07-01 20:12
on 2008-07-01 20:31
It looks like they are doing something like this:
Event.observe($('field'), 'keyup',function(e){$('field').size = 40+
$F('field').length*11;});
on 2008-07-01 21:24
On 1 jul, 15:30, Jay K <jhkni...@gmail.com> wrote: > Event.observe($('field'), 'keyup',function(e){$('field').size = 40+ > $F('field').length*11;}); try this: Event.observe( $('tag'), 'keyup',function(e){ $('tag').style.width = (30 + $F('tag').length * 4) + 'px'; } );