Forum: Rails Spinoffs (closed, excessive spam) del.icio.us tag

Posted by Marco A V (Guest)
on 2008-07-01 20:12
(Received via mailing list)
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?
Posted by Jay K (Guest)
on 2008-07-01 20:31
(Received via mailing list)
It looks like they are doing something like this:

Event.observe($('field'), 'keyup',function(e){$('field').size = 40+
$F('field').length*11;});
Posted by Leonardo Faria (Guest)
on 2008-07-01 21:24
(Received via mailing list)
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';
  }
);
Posted by kangax (Guest)
on 2008-07-01 21:57
(Received via mailing list)
Why 4?

-- kangax
This topic is locked and can not be replied to.