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 -- Posted via http://www.ruby-forum.com/.
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 > LepreIt''s called JavaScript. Do a Google search for JavaScript validation and you''re bound to find what you''re looking for. -- Posted via http://www.ruby-forum.com/.
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 -- Posted via http://www.ruby-forum.com/.
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 notI''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 -- Posted via http://www.ruby-forum.com/.
Adam Beale wrote:> http://www.htmlcodetutorial.com/forms/index_attsupp_5.htmlthat open up the way :) thank you -- Posted via http://www.ruby-forum.com/.