Displaying 20 results from an estimated 500 matches similar to: "using image with 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
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 code, but it''s on
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 = ServiceDeskStatusHistory.new
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
2007 Dec 31
3
undefined method `content_type'
I am using form_remote_tag to upload a file, but it says ..
undefined method `content_type'' for #<String:0x477a930>
what could be wrong when it works fine with form_for?
--
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
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",
@phonable_id),
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>Todo</label>
<%=f.text_field :name%>
</p>
<p>
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:
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 unsubscribe from this group, send email to
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field
= form_for (Clip.new), :html => {:multipart => true} , :remote =>
true , do |f|
= f.hidden_field :user_id, {:value => current_user.id}
= f.text_field :name
= f.text_area :description
= f.file_field :image
= f.submit I18n.t(:add)
generating the html code
<form accept-charset="UTF-8"
2009 Jan 13
1
odfWeave: Error in matrixPaste(...)
Hello all,
I try the follow test with an odf file.
*INPUT: teste.odt*
<teste, results=xml>>=
x <- matrix(rnorm(6), nc=2)
xst <- tableStyles(x, useRowNames = TRUE, header = NULL)
odfTable(x, styles=xst, colnames = NULL, useRowNames = TRUE)
@
and I get this error:
*OUTPUT error:*
Error: chunk 1 (label=teste)
Error in matrixPaste(textStart, textName, textEnd, x, tagEnd, sep =
2007 Jul 26
0
6 commits - libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c test/trace
libswfdec/swfdec_initialize.as | 2
libswfdec/swfdec_initialize.h | 83 ++++++++++++++++-----------------
libswfdec/swfdec_player.c | 8 +++
libswfdec/swfdec_player_internal.h | 2
libswfdec/swfdec_stage_as.c | 93 +++++++++++++++++++++++++++++++++++++
test/trace/Makefile.am | 27 ++++++++++
test/trace/scalemode-5.swf |binary
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
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 Mar 28
0
select in a loop
Hi
My view code is
<% for hardware_ci in @hardware_cis %>
<td> <%= select( "sd_ci", "service_desk_ci_association_type_id",
ServiceDeskCiAssociationType.find(:all).collect {|p| [ p.description,
p.id ] }) %></td>
<%= hidden_field "sd_ci", "id", "value" => hardware_ci.ci.id %>
<% end %>
<% for
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