Displaying 20 results from an estimated 39 matches for "submit_to_remot".
Did you mean:
submit_to_remote
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of
form_remote_tag? The description in the API docs. is confusing.
Is the combination of form_tag/submit_to_remote valid?
Is the combination of from_remote_tag/submit_tag valid?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2005 Dec 30
2
help on submit_to_remote
hi,
read the API doc and made search with google but can''t get a precise
explanation on how submit_to_remote work.
can someone help on that?
thanks
2008 Jul 21
2
using image with submit_to_remote
Hi
How can I give an image to submit_to_remote .I could successfully do
it with link_to_remote as below..But the same not working with
submit_to_remote
<%= link_to_remote( image_tag("/images/cancel.png", {:alt =>
''Cancel'', :class=>"noborder",:title=>"Cancel"}),
{:update =...
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi,
Is there any trick to initializing the params hash via submit_to_remote()? I
have a form with two submit methods - the regular, non-AJAX method, and the
AJAX method. The regular method works like a champ. The submit_to_remote
invokes the correct controller, but the params hash is empty except for the
values for :action and :controller.
I''d show my co...
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
Hi,
this snippet
<%= submit_to_remote(''create_button'', ''Add Phone'',
:submit =>
"phone_form",
:url =>
send( "#{@phonable_type.to_s.downcase.singularize}_phones_path",
@p...
2006 Jun 01
2
submit_to_remote with an image-tag?
Hi All,
I am searching for a way to use an image as a submit button. I''m not
having much luck using submit_to_remote with a image-tag, and I can''t
use link_to_remote because I need to submit some form fields.
I know this must be possible but I am missing something... Ideas anyone?
Thanks in advance,
Jens
2009 May 19
0
submit_to_remote fails on rails 2.2.2
submit_to_remote fails on rails 2.2.2 and rails 2.3.2 but fully
working with 2.0.2
please give me an answer as soon as possible. its very urgent
the code is
HTML
====
<% form_for :todo, @todo, :url => { :action => "update_todo" } do |f|
%>
<div>
<p>
<label>...
2006 Jun 23
0
onclick action for submit_to_remote
http://tr.openmonkey.com/articles/2006/01 says that I can''t use :onclick
options for submit_to_remote method in rails from a view.
How do I perform javascript validations for such controls supporting Ajax?
Regards,
Jatinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060623/967eed11/attachment.html
2010 Jun 30
1
rails 3 submit_to_remote
How do you do ajax functions like submit_to_remote or link_to_remote
to ajax update stuff on the page in rails 3?
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscrib...
2006 Apr 21
4
link_to_function with submit
I looked everywhere but couldn''t find it.
I don''t want a submit_tag or image_submit_tag but a normal link that
submits my form.
Normally I would do this with a javascript like
function sendForm ()
{
document.forms[0].submit();
}
but this doesn''t work with form_remote_tag
link_to_function( ''Send'' , "sendform();")
So the question is:
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone,
Newbie here. I''m trying to get a textual form element to submit in
the context of a form_remote_tag block and having little success.
Oddly (or perhaps not), using regular old form_tag in its place does
cause the elements to be submitted. Here''s the relevant partial ERb
code:
<%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } )
2008 May 13
4
calling another rjs file in an if condition
Hi
I have a controller action like below.This def is called by a
submit_to_remote
def edit_service_desk_status_after_transfer
if params[:transfer_reason].empty?
#This is used in the :failure of submit_to_remote
else
@sd_ticket = ServiceDeskTicket.find(params[:sd_id])
ActiveRecord::Base.transaction do
@sd_status_history = ServiceDesk...
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits
a post, he has a drop-down list of categories. I want to put a "Add
category" link next to the list of categories.
This is already inside a form, so a "link_to_remote" that creates a
small AJAX form inside the "submit post" form will not work because that
will mean to embed a form in another
2007 Jun 07
6
Can't download files with send_data or send_file
I have a form_remote_tag that calls a method to print out a csv file
for download. If I tell the form_remote_tag to update a div the data
comes up in that div, but otherwise I can''t get the browser to
acknowledge the sent file.
>From view:
<%= form_remote_tag :url => {:action => "csv_dump" }%>
<%= submit_tag "Download Complete List" ,:name
2006 Jan 13
9
form_remote_tag breaks inside table
i guess its better form to keep form tags outside of table tags anyways,
but it took a lot of trial and error to figure out thats why @params
were no longer showing up after switching form_tag to form_remote_tag.
not sure if this is a prototype ''bug'' or ''feature'' or what. but my next
step was to switch to a seperate form tag for each row to reduce
needless
2006 Jun 28
2
Ajax - Upload File Upload
hello, i have a problem. I want to upload a file with ajax and the
following tag:
submit_to_remote ''button_save'',''Speichern'',{
:url => {:action => ''ajax_update'', :id => @product},
:update => ''formular''
}
it doesn''t work, my form_tag looks like:
form_remote_tag(:url => {:action => '...
2006 Jan 23
1
Submit_to_remove : possible to send a type="file" ?
Hello,
In a form I can send and receive a text_field with a submit_to_remote.
No problem.
But I can''t see any data of the file type. If i do : params.inspect, I
see all, except the file variable.
This is impossible ?
Thanks
2008 Oct 29
0
RJS problem after upgrading to Rails 2.0.2
...<%= hidden_field_tag :index, current_contracts_counter %>
<%= hidden_field_tag :type, ''contract'' %>
<%= text_field_tag :price, "", { :id =>
"contract_price_override_#{current_contracts_counter}" } %>
<%= submit_to_remote(''update_contract'', ''Update'', :url => { :action
=> ''price_override'' }, :html => {:style => "width:60px;"}) %>
<%= hidden_field_tag :contract_index, current_contracts_counter %>
<%= submit_to_re...
2006 May 18
4
Cascaded Forms
Hi guys, it''s me again ;)
is it possible to put forms into forms? My problem is, i have a form
which gathers informations about an SSL Certificate order. There is a
field which holds the SSL CSR file. Now i wanted to put in a subform
which has an form_remote_tag and decodes that CSR file and returns if
everything was okay or not.
Now if i put in a submit_tag it submits my form which
2009 Jan 18
2
InvalidAuthenticityToken error with remote_form_for
Hi All -
I have a form_for that I''m trying to convert to remote_form_for, and I
keep get this error:
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request_forgery_protection.rb:86:in
`verify_authenticity_token''