similar to: :confirm on a form

Displaying 20 results from an estimated 200000 matches similar to: ":confirm on a form"

2005 Apr 10
1
Submitting form using link_to
I''ve got a form with a paginator and I''d like to save the contents of the form whenever the user moves to a different page. Since the form contents aren''t submitted when a link is clicked, I thought I''d just change the action of the form to the URL of the paginator link and then submit the form using form.submit(). The form submits but I keep getting a 404
2009 Feb 07
0
Simple form with option to go to advanced form
I have a todo list involving projects and tasks and im using nested resources. In Projects Show - i list all tasks associated with the project. I also have a simple "add task" which allows the user to add a task but only specify the title. Other attributes are set to default (e.g. due date = None, priority = NA etc). This form is sent to project_tasks_path i.e. create in Task Controller.
2006 Feb 10
0
Updating a select in a form
Hey everyone, I have a form with two selects, a category and a sub category. Obviously, the sub-category menu cannot be filled in until a category is chosen and must change based on what category is chosen. Before I was using AJAX on this form I had an onchange="this.form.submit()" on the category select, and the controller knew to simply re-render the view if
2005 Jul 24
0
submit tag confirm
Well, hmm... I can get a nice javascript confirm with the link_to helper like this: <%= link_to("remove", {:action => "remove_person", :etc etc}, {:confirm => "Are you sure?"}) %> But if I try something similar in a submit tag, the javascript does not work: <%= submit_tag("Remove Person", {:confirm => "Are you sure?"})%> Is
2010 Apr 14
1
Rails does not display form error message on a custom method
Hi all, I''ve created a custom method called checkout in my app. I create an order (which is done my adding products to my "cart"), assign it to my client, and then I head to my checkout screen where I confirm the items and enter their customer order number and complete the order (submit). Everything works great except that it doesn''t display error messages.
2006 Jun 13
1
How to give conditions in rails
Hi, I have Holiday table. the fileds are id,holiday_date,description. i added new records and list them also. when i listed all the records in the database are listed but i want to list only one particular year records. my holiday_list.rhtml page is as follows <%= stylesheet_link_tag "common", :media => "all" %> <%= error_messages_for ''holiday''
2011 May 04
1
Why do I sometimes have to refresh the page manually after an AJAX form submission?
When I do remote form submits through jQuery .submit() why do I sometimes have to refresh the page manually to see the results? My jQuery handler is very simple: $("#vote_yes").click(function() { $("#approval").val(true) $(".edit_vote").submit() }); And the link that leverages this bit of code is as follows: <%= link_to("Vote
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all, I have two comboboxen, comboA is popultaed when :controller/list is retrieved first time. When comboA is selected, I want to auto-populate comboB (modelB belongs_to modelA). The population of tableC (modelC belongs_to modelB and belongs_to modelA) should not populate until a "GO" button is clicked (link_to with submit). Help? I need an example of how to filter the post
2009 Nov 20
3
Javascript Confirm for Form Value
How could I ask a user to confirm specific form input? EX: <%= f.submit ''Donate'', :confirm => ''Confirm your donation amount: ###amount###'' %> Where the ###amount### would be replaced with the amount entered in the form. Thanks, Dustin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2009 Nov 12
1
Please help me ------ Mapping an item to article
Hi everybody, I have a form like this <h1>New menuitem</h1> <% form_for(@menuitem) do |f| %> <%= f.error_messages %> <p> <%= f.label :title %><br /> <%= f.text_field :title %> </p> <p> <%= f.label :alias %><br /> <%= f.text_field :alias %> </p> <p> <%= f.label
2007 Nov 21
0
Add Javascript to :confirm in form submit
I want to have some logic in my :confirm message, so that if the user enters some illegal data, it will notify directly when clicking on submit, and doesn''t have to go through the server. How can I add my Javascript code to the Rails :confirm attribute? Can I do that with AJAX forms? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this message because
2007 Jan 22
0
How to stop return key from submitting form
I''ve got an ajaxed form going that is set up to have the user type something in a text field and hit a button that throws that entry into a table on the page. User is expected to enter several items, and then submit the form which goes to the next page. I would like the user to be able to enter an item and hit the return key to toss it into the table, but either Rails or the browser
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
When i use button_to or link_to, i can easily request a confirmation dialog with (for example) <%= button_to "Delete this story", { :controller => "story", :action => "delete", :id => @story.id }, :confirm => "Delete story: are you sure?" %> I also want to do this for the submit buttons on my forms, which are
2008 Jan 31
3
Multiple form weirdness in IE6
I am having an issue where I have multiple forms on a page. The first form has a couple of hidden inputs. The second form has all the visible controls including three buttons. Each of these buttons has a behaviour attached to it (From Ben Nolan''s Behaviour.js) based on its id. The code for the first button is something like this (I am also using prototype.js): var button1Func =
2008 Oct 31
6
link_to submit form value 2
Hi to all, I''d like to pass with a link to values inside some form. I''ve read in other posts that it''s possible if i include the forms inside a html <div>... So here it''s my code of the view : <div id="study"> <table> <tr><td><label for="study_titolo">Titolo di
2005 Dec 21
3
How to make a drop-down automatically submit an AJAX form
Hi, I know that to make a dropdown box automatically submit when you change the value, you do this: <select ..... onchange="this.form.submit();"> BUT i''ve got an ajax form, and if i do the above trick, it simply reloads the ajax partial into the whole screen, rather than into the div where it is meant to go. I''ve already got it all working so that if you click
2006 Mar 06
2
Computer Inventory: Problems Retaining Values in a Forms
This is my first rails app and I am creating a Computer Inventory system as practice. The problem I am having seems trivial, but I can not figure out what exactly is going wrong, so this is where help from those of you who are more experienced is needed. I am having problems retaining the values in some of my forms. Everything works fine when I am creating or editing a Computer in the inventory
2011 Feb 03
1
How to transfer a javascript value into a symbol used in Ruby on Rails
Hi, I am currently using Rails 2.0.2 with Ruby 1.8.7. My Prototoype.js version is 1.7(if required). I am basically trying to integrate the calendar_date_select plugin in my app. The link/tutorial I am referring is: http://ianli.com/site/HowTo/UseCalendarDateSelectRailsPlugin I am trying to save the date I receive through the date select plugin and store in a rails symbol :publishing_date. I am
2006 Apr 09
4
Best RJS process for what I''m trying to do...
I just wanted to ping this off the list to get some advice since I''m now pulling my hair out. Thanks in advance for taking any time to look at this. It''s much appreciated. Now, my problem is my RJS is working but it''s not inserting how I want it to insert. I have a partial I''m rendering in my view that looks like this: <ul
2007 Feb 24
2
RESTful PUT and button_to
I''m working on a RESTful app, and I''ve hit a snag. Here''s a simplified example of the problem. (Excuse me if this example code isn''t strictly correct; I''m typing from memory.) Suppose I have a table which models a simple counter. It has a single column, "count": class CreateCounters < ActiveRecord::Migration def self.up