Displaying 20 results from an estimated 200000 matches similar to: "Help with buttons and labels"
2006 Jan 20
1
form_tag and multiple buttons inside problem
Hi, I have a bit of a problem with a form in rails. Well, the problem really is
me not fully understanding the mechanism of the form_tag, so here''s what i try
to do:
The idea is to present a some edit fields for some @product attributes and then
present a table showing the @product.pieces (pieces for every @product) and to
include a "Edit Piece" and "Delete Piece"
2006 Apr 19
2
How to use multiple buttons on the same form with AJAX?
Hi,
We are trying to use multiple submit buttons in the same form to tie to
different actions on the server side.
For example:
<input name="commit" type="submit" value="edit">
<input name="commit" type="submit" value="cancel">
<input name="commit" type="submit" value="test
2006 Feb 17
1
AJAX and radio buttons
Hi!
How can i use ajax with radio buttons?
I have form with 2 radio buttons, which updates div with the value of
selected radio button. It worked correctly when i used submit button,
but when i removed it and used observers it didn''t. When i press the
first button it displays its value, but when i press the second button
it displays new value for a moment (0.5s ?) and then suddenly
2006 Apr 19
3
Custom Form Buttons
Is there a way to deliver options for a custom form button to the submit
function?
As in:
<input type="image" name="submit" src="image.jpg" width="126"
height="18">
--
Posted via http://www.ruby-forum.com/.
2009 Apr 15
0
Multiple CheckBox and Radio Buttons
I am using multiple check box (more than 1 checkboxes) and a radio
button and when I click the "Submit" button, it calls the "create"
method it is inserting only 1 value for checkbox and also for the radio
button.
Could you please tell how to insert multiple check box values in create.
Also, in the scaffold edit page, the default "edit" method displays
all
2008 Nov 03
2
Multiple Submit Buttons
Hello.
I have run into a new form that contains multiple submit buttons.
Currently my code for working with forms looks just like this example.
require ''rubygems''
require ''mechanize''
a = WWW::Mechanize.new { |agent|
agent.user_agent_alias = ''Mac Safari''
}
a.get(''http://google.com/'') do |page|
2009 Aug 16
2
rails form_for submit button
Hi,
Presently the submit button is coming as a button in below case.
<% form_for @chapter do |chapter_form| %>
... labels
... text_areas..
<%= chapter_form.submit ''Create'' %>
I want to build a custom button in CSS and show that instead of the
button.
Can anyone help me please?
2006 Apr 08
2
Multiple submit buttons
Hi,
How do i differentiate different submits tags / buttons on one form. Say
I want to create an edit form and I want to provide two buttons; one to
save and one to cancel. I would have:
<%= submit_tag ''Ok'' %>
<%= submit_tag ''Cancel'' %>
How do I know which button get pressed by the user?
One more thing, how to specify the default selection in a
2008 Mar 23
1
radio buttons - how to identify record using value?
I''m making a simple questionnaire app using RoR. I''ve got a model for
Questions, a model for Answers, and a third model, Qa, for matching each
question to five possible answers through foreign keys. So, each qa has
a question and five answers , a1-a5, through belongs_to and a
:foreign_key, and then a selected_answer field for specifying which
answer was selected by the user. The
2006 Apr 24
4
javascript in RoR page - Check ALL/uncheck ALL buttons
I am trying to implement a check all and uncheck all button for my check
boxes.
Here is what I have below. I am getting this error each time:
Error: document.myform.add_visit_for_this_Pt has no properties
Source File: http://localhost:3000/AddPatientVisit/addvisits
Line: 1
Strange that I can''t seem to pass value into the function.
Thanks for your help!
<SCRIPT
2006 Jan 18
1
Observing radio buttons
I''m having some problems with observe_field on some radio buttons. seems
to be calling my action on change rather than on click (i.e. when i
click on one button the previously selected button''s action gets called
without a value, then the newly clicked button''s action gets called with
it value) I tried the :on => ''click'' option to no avail.
Any
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects,
I''d like to use the button_to helper to get "something" that generates
a POST request. Unfortunately, that something is a form and forms can''t
be nested.
I''d also like to place buttons related to the same form close to each
other. At the top are some navigational buttons
2016 Sep 26
1
[PATCH] p2v: add mnemonics to labels and buttons (RHBZ#1379289)
Set mnemonics for all the labels with a text entry or combo box next to
them, and for all the buttons, and check boxes.
---
p2v/gui.c | 56 ++++++++++++++++++++++++++++++++++----------------------
1 file changed, 34 insertions(+), 22 deletions(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 36bb655..dee8b83 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -285,13 +285,14 @@ create_connection_dialog (struct
2008 Apr 30
5
Quick Submit Button Question...
Hello,
Can I pass a variable from a submit button only? I have a form that the
user fills out and I need two different submit buttons - one for ''sync''
and one for ''full push''. I was thinking I could add some sort of param
to the button, but it''s not working... is there a way to do this? I have
this:
<%= submit_tag ''push to
2007 Sep 26
3
Ajax without submti button?
I have a drop down list, how can I set it up to send request when
selecting an option rather than pressing submit button after selection?
And how can I save values of checkboxex/radio buttons without submit?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2006 Apr 10
3
form_remote_tag can only have one submit button?
I setup a form_remote_tag with several submit buttons, all of them share
the same name
( ''do_action'' ) and their values differ.
eg.
button1 named do_action with value ACTION1
button2 named do_action with value ACTION2,
etc
No matter which button I press the value passed is always the one
defined for the first of these buttons ( the correct value associated
with the pressed
2006 Apr 06
1
Puzzled by "radio_button".
I have what seems like simple, working code:
<form action="save_dh_options" method="post">
<fieldset>
<legend>DH Work Reports</legend>
<p>Would you like to fill a work report?</p>
<p><%= radio_button("user", "enable_report", "yes") %><label
for="yes"> Yes</label><br
2010 Mar 30
2
My first wxRuby app doesn't work, please help!
Hi, I'm trying to learn wxRuby. This is program:
require 'wx'
include Wx
class MyFrame < Frame
def initialize
super(nil,-1,"Mi primera ventana Wx!")
@panel = Panel.new(self)
@lbl1 = StaticText.new(@panel,-1,"Label")
@text1 = TextCtrl.new(@panel,-1,"Text Value")
@combo =ComboBox.new(@panel,-1,"Combo Text")
@button
2007 May 03
0
need javasrcipt help
hi,
I have two button in my Rails page. one is submit and other is
delete.
for submit button, I use:
<%= submit_tag "submit" %>
In the case of delete button I place a ''onclick'' javascript function to
call my ''set_value'' function,
<script language="javascript">
function sel_value(){
var
2009 Apr 28
0
Radio buttons in forms
<% form_for @group do |g| %>
To create a new group please complete the details below
<p>
<label> Group Name </label>
<%= g.text_field :name %>
</p>
<p>
<label> Public </label>
<%= g.radio_button :type, "public" %>
<label> Private </label>
<%=