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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It looks like they are doing something like this: Event.observe($(''field''), ''keyup'',function(e){$(''field'').size = 40+ $F(''field'').length*11;}); On Jul 1, 1:12 pm, Marco A V <marcoav...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On 1 jul, 15:30, Jay K <jhkni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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''; } ); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Why 4? -- kangax On Jul 1, 3:24 pm, Leonardo Faria <leonardofa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 1 jul, 15:30, Jay K <jhkni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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''; > } > );--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---