Displaying 20 results from an estimated 70000 matches similar to: "remote forms"
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 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 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
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'',
2005 Nov 25
0
question on rails , form_remote_tag and backbase
David,
I been reading your book and going through the examples but i am stuck
on th using the form_remote_tag.
I am using the Backbase ajax framework with rails and protoype.js
The following form.rhtml file
<% if @guess %>
<p> It seeems ''<%=h @guess %>'' is hardly the right answer</p>
<% end %>
<%= form_remote_tag(:update =>
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 May 19
1
validates_presence_of and ajax-forms
Hi.
I have "validates_presence_of :login, :password, :firstname,
:lastname" in my user-model. I enter the information in
new_user.rhtml:
<%= error_messages_for(:user) %>
<%= form_remote_tag :url => { :action => :register }, :html => { :id
=> ''new_user'' } %>
I have a register.rjs with :fade.
Omitting firstname or any other required field
2006 Apr 19
1
AJAX - update item forms problem
I have a table showing some records from the database. These records
should be always ordered by some datetime field. The list of items is
changed by AJAX using RJS scripts and edits are done by showing and
hiding an update form under a chosen row. Adding and updating rows works
great but my problem is when the order of items is changed after making
some AJAX datetime updates update forms of
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
2006 Jun 05
1
:onChange and AJAX forms
Hi,
I have this:
<%= form_remote_tag (:update => "item_type_list", :url => {:action =>
:list_item_type_for_brand}, :id => "form1") %>
<div>
Brand <%= select :current_brand, :id, @all_brands,{},{:onchange =>
"submit()"} %>
<input type="submit" value="Change" />
</div>
<%=
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
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 Jun 23
3
form_remote_tag is not passing form params
I''ve searched and searched and searched again, and I cannot find any
help with this problem. There''s an identical problem on this forum, but
it was never resolved. I''ll try to re-open the subject with a bit more
information.
Problem: The form_remote_tag() method in my "list" view is not passing
the params[] hash of the values stored within my form.
2006 Jun 15
2
AJAX form inside table - error
Hello,
I need to put an AJAX, form such that it is inside a table, and spans across
few rows.
But, what I am noticing is that, while submitting the form, the data in the
fields is not submitted.
If I move the form outside the table or inside a cell, things work OK, but not
when the form is inside the table and spans few rows. This problem is only
with AJAX forms, regular forms work perfect. I
2005 Jun 10
1
Submitting an ajax form via a select
I''m trying to submit an ajax form via an onchange method in a select
menu, but I can''t seem to do it.
The problem holding me up, is that I can''t figure out how to set the
ID of the form when using a form_remote_tag (I need to use the ID of
the form as the forms on the page are variable, so I can''t reference
it in the form array). Setting :id =>
2006 Jan 16
1
redirect_to is not working with ajax forms
I''m having trouble using redirect_to in an action called by a
remote_form_tag.
The log shows the redirect, and rendering of the redirected page, but the
browser
won''t redirect. If I set :update in the form_remote_tag, the page that was
supposed
to be redirected to will replace the :update elements content, and crash
FF1.5
Running edge rails, and utf8 encoding
joshua
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
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that
result in an ajax call that updates two sections on the page. Here is
the code in the controller
def create
...
render :update do |page|
page.replace_html ''list_items'', :partial => ''lists/list_items''
page.replace_html ''add_item'', :partial =>
2006 Mar 15
2
Using form_remote_tag, setting the form name
I''m using form_remote_tag like this:
<%= form_remote_tag \
:update => "div_id_dataentry_bottom_ajax",
:loading => "document.getElementById(''wait'').innerHTML=''Loading...'';",
:url => { :action => "dataentry_bottom_edit" } %>
And it makes this code:
<form
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