similar to: text_field_tag html class

Displaying 20 results from an estimated 3000 matches similar to: "text_field_tag html class"

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",
2005 Aug 15
2
Newbie rendering problem
Hi On every list request i render an item partial through a collection of items. the item table has 3 columns namely name,anotherName and id. the item partial looks like <%@item=item%> <%= error_messages_for(:item) %> <tr id="<%=item.id%>"> <% for column in Item.content_columns %> <td><%=h item.send(column.name) %></td> <%
2007 May 07
0
set cursor in text_field_tag?
Let''s say I''ve text_field_tag A and B. I type something in A and hit the tabulator-key. An observe_field- helper-method gets triggered, some fancy Ajax-JS-stuff happens, the formerly disabled field B gets enabled and now I''m able to type into textfield B. No, how can I say with JS/Prototype/Railshelpers that I''d like the cursor to jump right in textfield B
2006 Jul 27
1
Routes not working when submitting a form
Hi, I have the following code, a very basic textfield with a submit button: <%= form_tag({:controller => "job", :action => "index"}, :method => ''get'') %> <%= text_field_tag ''province'', @province %> <%= submit_tag "search" %> <%= end_form_tag %> In my routes.rb file I have: map.connect
2006 May 10
3
text_field_tag options
Hi all, can someone explain to me how the options for helper text_field_tag supposed to be written. I really tried a bunch of stuff without success. For example I need a field with id "query", so I write <%= text_field_tag :query %> which works fine. But what if I want the field only 5 characters big? I tried among other <%= text_field_tag :query ,
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"><%=
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 =>
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
2012 May 24
3
rails ajax issues
Hi * *I think this is my 4 or 5th post about the ajax issues with my rails code. But i couldn''t rectify my issues sofar. problem is, In my pages.html.erb have one text field and button. when i click on that button, the text field value will get into the controller through ajax,so after the function i need to get that value(textfield value) in same page. *page.html.erb*
2007 Dec 14
3
using the session to pass a value from form to controller
I have a form in which a bunch of new users can be created with the same password if desired. I''m trying to write the password into the session and pull it out in the controller (besides avoiding putting it into params, this also should let me keep it for repopulating the text field if the creation fails for any reason and the user gets sent back to the page with the form). As part of a
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
2005 Feb 24
2
OT - C structure question
I hae tried searching the web for the answer, but, man is there a lot of pages ... :( in the language I develop in, if I have a structure I can dynamically refer to the contents of a field of the structure like so: MESSAGE SomeStructure:Field(SomeFieldName):Value where SomeFieldName is either a quoted constant or a variable expressions In "C", I beleive that you can refer 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
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
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 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/.
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
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 Mar 29
2
intercepting messages from FXScrollBar toFXScrollArea
Hello Lyle, the Task, I want to accomplish: I''ve created a little app that is used on a PC with a touch screen. To ease hitting the keys, the keys and the scrollbars are really big (45 pixels). So the ScrollCorner is also really big and I just wanted to use this space by moving the ScrollDown Botton down to the position of the ScrollCorner (like the attachment shows) The code looks like
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
Hi Lyle, I noticed that when creating a FXTextField with TEXTFIELD_ENTER_ONLY it still sends messages to its target when other keys than KEY_Return are pressed. I usually create a textfield this way: textfield = FXTextField.new(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY) textfield.setText(aStr) textfield.setFocus textfield.move(x, y, w, h) textfield.show This way only the enter key should