Displaying 20 results from an estimated 3000 matches similar to: "Cascaded Forms"
2006 Apr 09
4
submitting forms help
I cant seem to figure this problem out and i was hoping someone could help
me out.
I have a page with a list of forms. I would like the user to be able to
submit each form individually, or submit them all at once, to a different
action (bascially, one that will do batch processing of all the forms).
Is this possble? Please help.
-------------- next part --------------
An HTML attachment was
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/.
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 } } )
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 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 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 => "search_contact_div",
:url
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
2008 Oct 03
7
form_remote_tag and :with
I am trying to pass the result from a javascript function along with
the result from a text_field with form_remote_tag. This is what I
have so far, but no go:
<% form_remote_tag(:url => {:controller => ''requests'', :action =>
''create''}, :with => "''data=''+request()", :update => ''request_sent'' )
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following
code:
<%= start_form_tag :action => ''create'' %>
<%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %>
<div id="categories">
<%= form_remote_tag :update => ''categories'',
2007 Mar 23
11
Is there such a thing as button_to_remote?
I''ve changed my destructive link_to statements in favor of button_to.
But what if I want to make an .rjs call with that button?
Seems like we need something equivalent to link_to_remote, so that the
button can make an ajax request instead submitting the form.
Or am I missing the point entirely?
Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message
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 Nov 30
4
response is null when using should_render_rjs
I''m trying to use rspec to test a controller that has ajax.
I have the following action:
def change_ad_type_form
render :update do |page|
page.replace_html ''ad_sub_form'', :partial => ''text''
end
end
and the following spec:
specify "should return Text subform on AJAX request to
change_ad_type_form" do
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
2006 May 18
3
Render layout on the fly
Hi guys,
i was wondering if there is any possibility to render a layout on the
fly instead of putting it into the layouts/ folder. Any ideas?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All,
This is my first post to the ruby message board so if my request is
better suited to another location just let me know,
The problem I keep coming up against is with a listing of objects and
updating that list via AJAX (for arguments we are talking about a list
of users).
As it stands I can currently submit a form, and update the list
(using :update
2006 Jun 20
6
checkbox_tag outside a form?
Is it possible to use checkbox_tag outside a form? I''ve put it in a view and it renders but I get nothing back in the params hash. Is there a way to get the value? Like maybe with some JS onsubmit to populate the params hash myself?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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
2003 Aug 24
2
setClass question
I would like to add a class to the SparseM package. I have a class "matrix.csr"
that describes a matrix in compressed sparse row format, now I would like a class
matrix.diag.csr that describes such objects when they happen to be diagonal.
The idea is that matrix.diag.csr objects should behave (later in life) exactly like
matrix.csr objects, the distinction is only needed in order to