Displaying 20 results from an estimated 30000 matches similar to: "Reading the contents of a text_field_tag within a form"
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 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 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 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 ,
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
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 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
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 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/.
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 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
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
2008 Jan 25
2
form formatting
If I want to use fbml elements and rails tags, is there a way to do
within a fb:editor?
if I do:
<% facebook_form_for(:task, at task,:url => create_task_path) do |f| %>
Assign Task To: <%= fb_friend_selector %>
<%=f.text_field :ttype, :label=> "Title"%>
<%=text_field_tag :newrnumdays, ndays, :label => "# Days"%>
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi,
I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
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 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>
2006 Apr 28
1
beginner - default form values
I want to build a simple calculator with 1 form and a results page.
The form will be redisplayed with an error message upon an invalid value
entered.
I won''t be using any database/active record for this.
The problem i have is when i return to the form page i want to redisplay
the values already entered in the form fields.
Should i use text_field (which seems to be tied to a model) or
2006 Aug 04
5
Creating new record from a form? (stringify_keys! error)
Appologies if this has been covered, But it seems the search is busted.
I have a simple model object "Biostat" which I am trying to add a new
record to.
this is the form:
<%= form_remote_tag(
:update=>''statsTable'',
:url=>{:action=>''new''},
:html=> {:action=>''new'',