Forum: Ruby on Rails input controls on-the-fly ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2f66697a32307c7660d34c3e7b6dc2e6?d=identicon&s=25 lepre (Guest)
on 2006-04-21 15:49
i wish to know if there is some way to check user-input directly while
it's inserted.
for example if i have to insert a number and the user press letters i
just have to hide/delete the letters and wait for numbers.

all without the need to press some submit button or any link..just
automatically.

Thanks
Lepre
Fb23bc8cd4030c526b0689276b34c8bd?d=identicon&s=25 Bryan Duxbury (bryanduxbury)
on 2006-04-21 16:36
lepre wrote:
> i wish to know if there is some way to check user-input directly while
> it's inserted.
> for example if i have to insert a number and the user press letters i
> just have to hide/delete the letters and wait for numbers.
>
> all without the need to press some submit button or any link..just
> automatically.
>
> Thanks
> Lepre

It's called JavaScript. Do a Google search for JavaScript validation and
you're bound to find what you're looking for.
2f66697a32307c7660d34c3e7b6dc2e6?d=identicon&s=25 lepre (Guest)
on 2006-04-21 16:59
Bryan Duxbury wrote:
> It's called JavaScript. Do a Google search for JavaScript validation and
> you're bound to find what you're looking for.

i know js but till now i only found validation after the submit button
(that's why i said it) and nothing about on-the-fly...

i posted here also to know if there something directly in rails or not
82bbe83d3f62141815f1586087907697?d=identicon&s=25 Adam Beale (osblues)
on 2006-04-21 17:12
lepre wrote:
> Bryan Duxbury wrote:
>> It's called JavaScript. Do a Google search for JavaScript validation and
>> you're bound to find what you're looking for.
>
> i know js but till now i only found validation after the submit button
> (that's why i said it) and nothing about on-the-fly...
>
> i posted here also to know if there something directly in rails or not

I'm no rails guru so I couldn't tell you if there's something in rails
to do it automagically, but in JavaScript do something like -

http://www.htmlcodetutorial.com/forms/index_attsupp_5.html
2f66697a32307c7660d34c3e7b6dc2e6?d=identicon&s=25 lepre (Guest)
on 2006-04-21 17:20
Adam Beale wrote:
> http://www.htmlcodetutorial.com/forms/index_attsupp_5.html

that open up the way :)
thank you
2f66697a32307c7660d34c3e7b6dc2e6?d=identicon&s=25 lepre (Guest)
on 2006-04-22 03:25
OMG....i just got about RJS (ruby javascript)....that's so nice....
This topic is locked and can not be replied to.