search for: disable_with

Displaying 14 results from an estimated 14 matches for "disable_with".

Did you mean: disable_jit
2010 Jul 30
2
:disable_with combined with Ajax form: Possible?
Hi there, I''m trying to have an Ajax form with a submit button that has the :disable_with feature, but the submit button does *not* disable... I tried like this: = = = <% form_remote_tag :url => { :controller => ''profiles'', :action => ''update'' }, :method => :put do -%> <%= submit_tag ''Save'', :disable_with =...
2006 Jul 24
2
:disable_with for button_to ???
With form_tag submit buttons I use the " :disable_with => ''button label while processing'' " option so that visitors with slow connections aren''t able to submit forms twice. How do I do the same thing with button_to? I''ve got several pages where there are multiple forms on the page being updated with Ajax...
2006 Apr 06
0
:disable_with breaks form_remote_tag?
I just added :disable_with attributes to a handful of form submit tags, and they worked as expected for normal forms. But in the two instances where I added them to ajax forms (ie, form_remote_tag generated forms), they caused unexpected behavior -- rather than update a target, the form response loaded in the browser as if i...
2009 Jan 08
4
Problem with disable_with
...ong></td><td><%= collection_select ''email'', ''region_id'', @regions, :id, :name, { :include_blank => true } %></td></tr> etc. <%= submit_tag "Send", :class => "submit", :id => "mysubmit", :disable_with => "Please wait..." %> <% end -%> When I click ''Send'' without the required fields the ''Send'' button is disabled and the text is replaced with ''Please wait...'' which is as I expected. It also performs the ''valida...
2006 Aug 30
10
respond_to not detecting JS turned on. form_to_remote problem?
...end end def wanted_html end end ----- Views ----- --- index.rhtml --- <p>Click the button to test the respond_to method</p> <%= form_remote_tag :url => {:action => ''edit''} %> <div> <%= submit_tag ''Test'', :disable_with => "Please Wait" %> </div> <%= end_form_tag %> --- edit.rjs --- page.alert "You made it with JS turned on!" --- wanted_html.rhtml --- respond_to says you don''t have JS turned on. --~--~---------~--~----~------------~-------~--~----~ You received...
2010 Nov 30
2
IE problem with submit_tag
...this problem does not occur with Firefox, Chrome, or Opera when run on the same system so I''m reasonably certain I''ve got an IE issue here. Here''s a simple description: I''m ending a Users#new form with: <p><%= submit_tag, "Sign Up", :disable_with "Patience..." %></ p> When I tail the development.log I never see this action get posted to the server. If I use any of the other browsers, the action completes just fine. I am using the :disable_with "Patience..." option throughout my application, for example: Sessi...
2006 Nov 11
1
Disable foms when submitting
Hey, I want to disable the form when an user submits, I know that u can do this with javascript. But i dont want to put code for each form on my website, and I have a lot of forms like.. <%= start_form_tag :action => ''create'' %> <table width="100%" border="0" cellpadding="0" cellspacing="5"> <tr> <td
2009 Mar 05
3
How to render :partials *before* the :action has finished ?
...page *before* the called :action has finished? Basically, my situation is this: When I click on a certain button, 3 things are supposed to happen: - INSTANTLY: the button should become disabled (either by setting ":disabled" to "true" by updating the partial or by using ":disable_with") - INSTANTLY: one or several things should appear on the page (probably as :partials) - "IN THE BACKGROUND": sending out 2 emails (which takes too much time to wait for) The thing is: it''s impossible to do it like below (since "render" always seems to be executed...
2007 May 15
5
Problem with RJS and/or Prototype.js =>ResponseText is blank
...> "margin-form" }) do %> <label for="text"> Your Comment: <%= text_area_tag(:text, "", :rows => 4, :cols => 50) %> </label> <label> <%= submit_tag("add your comment ยป", :class => "submit", :disable_with => "Sending comment&hellip;") %> </label> <% end %> I''ve searched high and low and found a few similar stories but every time the reason for the odd behaviour hasn''t been related to my code, which seems to be pretty boilerplate to me. Thanks for...
2011 Jun 29
3
Rails double submit -> double post -> duplicate data
Hi, We are encountering occasions where users post twice or more a form, basically we have detected two situations: a) The user push twice enter b) The user push double click on button "save" or "submit" We consider that this becomes a problem when creating (because we duplicate data) and we think that in some context it could become a security issue
2011 Oct 07
0
will_paginate + RJS error
...format.html format.js end end The view: <% tabnav :user do%> <% form_remote_tag :url => ''search_professors'' do %> <%= text_field_tag :search, params[:search], :value => nil %> <%= submit_tag "Go", :name => nil , :disable_with => "Please wait..."%> <%end%> <div id="search_professors"> <%= render :partial => "course/professors_list" %> </div> <br/> <% end %> The partial inside the view: <h1> Professors List</h1> <% f...
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to send the form data. <%= submit_tag ''Save'', :class => ''submit'', :onclick => "document.getElementById(''save_button'').disabled=true;", :id => "save_button" %> This code sends the form data and a record is created,
2006 Jul 26
7
syntax for specifying :html fallback on form_remote_tag
Has anyone gotten the :html option for specifying a ''fallback'' action if javascript''s not enabled working on form_remote_tag (or remote_form_for)? I can''t figure out how to specify the action that''s supposed to be invoked if js _is_ enabled. Or maybe I''m just misunderstanding how this thing is supposed to work. I was assuming
2009 Aug 26
27
How to stop a user submitting the same data more than once.
I have a standard form built with rails, which a user to my site can use to submit data. Unfortunately one user just managed to submit exactly the the same data three times in a row. From the server logs it seems as though he didn''t use his back button and then resubmit everything. It looks more like he got a bit fed up waiting for the form to process and pressed the submit button three