similar to: text_field_tag options

Displaying 20 results from an estimated 20000 matches similar to: "text_field_tag options"

2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all Sorry for dummy question. How can I convert a text input in form to upper case letter in view? Can I call the javascript function toUpperCase() in text_field_tag?? <%= text_field_tag(:sometext, nil, :size => 14) %> I know I can achieve this using params[:sometext].upcase in controller, but I want to do this in view. Any ideas? Many thanks Valentino -- Posted via
2009 Feb 24
1
How do I clear values from text_field_tag after browser refresh????
Hi all, I''m having an issue with text_field_tag. I want to reset the value of the text_field when I refresh my browser, seems like a very simple thing, however I''m having hard time finding the answer. After I input some values, how do i reset the value to nil or empty?? my code is below <%= text_field_tag ''login'', @login, :class =>
2006 Mar 10
1
text_field_tag html class
Hello, how could I define class for input textfield, text_field_tag(''somefieldname'',nil,:class => ''txt'') doesn''t work ? :( Marius Zilenas -- Posted via http://www.ruby-forum.com/.
2008 Feb 05
1
How to set text in text_field_tag???????
Simple problem but I can''t find a solution. I have this tag: <%=text_field_tag("query", params[:query], :autocomplete => "off" ) %> Its a search field box. Question: how do I update the text in the text field???? i.e is there a rails equivalent like query.setText("some text") Thanks -- Posted via http://www.ruby-forum.com/.
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation I am creating e-shop and I have products. This view look like this: <% for product in @category.products %> <div class="produktyBox"> <%= product.title %><br /> Price: <br /> <div style="color:red; font-size:large; font-weight:bold; margin- bottom:5px"><%=
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and endate) <div> <label for="startdate">Booking Start Date</label><br /> <%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass, :readonly => "readonly", :maxlength => "25"} ) %> <%= observe_field("startdate",
2006 Apr 05
8
Pass paramter via form
Hi, I want to allow users ti search my blog. I have the following code below to initiate the form. <%= start_form_tag :action => ''search'', :search => search %> <p align =center><%= text_field ''search'', ''search'',"size" =>"20" %> <%= submit_tag ''Search'' %></p>
2009 Mar 12
4
How can I append a text_field_tag to a form_for?
Hello people, how can I append a text_field_tag to a form_for? When I submit the form all text_field_tags are not being appended to the params... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Mar 08
3
List and update values from text_field_tag fields
Hi, I populate a couple of text_field_tag''s with data from an AciveRecord object. Some fields are editable and at the end of the page there''s a submit button. I want the new values to be updated in the DB but by default my original values are stored again. How do i go about doing this? thanks/jens AIM: jens.tinfors@mac.com Skype: jtinfors
2008 Jul 13
4
How to justify text in text_field_tag
I would like to have the text in a text_field_tag right justified instead of left justified. Is there a way to do this? Thanks, Alex -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Mar 09
7
how to make two forms on the same page???
I can get the forms to be displayed, but i want to have only one "create" button. i''ve tried everything i can think of... -- Posted via http://www.ruby-forum.com/.
2007 Jan 30
7
text_field_tag
can you use :confirm => ''great consequences'', :post => true within text_field_tag options? I''m trying to confirm with users that changing that particular field will have great consequences. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Apr 08
2
ActionView::Helpers::FormHelper instance methods should take an object reference rather than an object_name.
Hi ActionView::Helpers::FormHelper methods (e.g. #text_field, #check_box...) take object_name as an argument. From this argument they infer a name that is supposed to contains the reference to the relevant object. I can''t see why the FormHelper methods were designed that way. Compared to simply passing them a reference, the current way seems too complicated and an invitation to problems
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code to follow). I have a form to create a new book. This book can have many authors and I wanted to be able to add the authors based on if they appear in the authors table. I originally was going about it a long and arduous way where I had several forms. After thinking about it I decided to dynamically add new fields to
2006 Jul 30
1
Insert multiple new child records with the parent
Hello, I am implementing a classic invoice application. On the create new invoice page I want to allow users to add new line items using AJAX: ----------------------------------------------------------------------------- Invoice Date [ ] Client [ ] Line Items 1. [ ] $[ ] <add new line item> <save> <cancel>
2007 Jul 22
2
undefined method `stringify_keys'
Hello I have a view for user registration but when i try to view this page i get this error: undefined method `stringify_keys'' for "username":String Here''s my registration.rhtml: <% form_tag :controller => :user, :action => :register do %> <fieldset> <label for="username">Username>/label><br/><%= text_field_tag
2006 Apr 20
0
Clearing text_field_tag -- Help PLEASE
I''m trying to clear the input fields on an Ajax form. Unfortunately, I''ve tried this just about every way I can think of and instead of clearing the fields, it''s clearing pretty much the whole page. I would ***really*** appreciate some help! The page has a form that allows the entry of two fields. The form exists inside a <div> with id=entry. When the user
2008 Dec 18
0
A question about text_field_tag value
This is my rails code: <%= label_tag ''user_name_label'', ''User Name:'' %> <%= text_field_tag ''user_name'', ''''%> <%= label_tag ''view_name_label'', ''View Name:''%> <%= text_field_tag ''view_name'', '''' %> I defined a user name text field
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi, Has anyone successfully implemented the :onsubmit option for form_remote_tag. It doesn''t seem to work for me. Is there any specific version of rails which is required for the same. Here''s my piece of code. <script> function set_tojid(){ alert(''onsubmit''); } </script> <%= form_remote_tag :update => '''', :url => {