Displaying 20 results from an estimated 400 matches similar to: "form_remote_tag is not passing form params"
2006 Jun 26
2
n-way has_mant :through
I''m trying to setup some mildly complex associations for a project we''re
working on and can''t seem to find much documentation on n-way has_many
:through associations.
I have the following models: Person, PhysicalAddress, EmailAddress,
PhoneNumber.
Each person can have multiple PhysicalAddresses, EmailAddresses, and
PhoneNumbers, and multiple people can share the same
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 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form
asynchronously. Easy done. However, we also want to add an
observe_form tag to check for some value changes while the form is
being entered.
The observe_form tag needs a dom id to work on but I can''t see how to
enter an html option for the dom id of the form on the
form_remote_tag.
Any ideas?
Here is the form tag so far...
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 Jul 27
1
form_tag vs form_remote_tag ----- the :condition option
form_remote_tag has a really useful little thingamob called
:condition. you give it a string which is then interpolated into the
form tag in such a way that the form is only submitted if :condition
evaluates in javascript to true.
so the logical thing to do is give it a JavaScript function
<%= form_remote_tag ( :condition => ''your_function_here()'',
2006 Feb 01
3
Problem using form_remote_tag and multipart
I have a form and e file field, and what I''m trying to do is when the
file is uploaded, a div shows the uploaded image using ajax, without
refreshing the page. But the problem I''m having is that with
form_remote_tag it won''t accept :multipart => true. Any ideas?
Thanks a lot
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with
an additional javascript directive?
eg I''d like for an inline javascript to make the form''s div container
hidden as soon as the button is pressed to avoid having it possibly get
pressed again ( sometimes the rails response is slow enough for a user
to think they need to re-press it ).
example:
<div
2006 Nov 04
0
form_remote_tag problems with post url
Hi,
I''m hitting a bump with the form_remote_tag, and wondering if anyone can
help.. SO i''m trying to implement a tag-based search on a site and using
routes, I can enter a url such as http://localhost/tag/query , which calls
an action ''search'', and returns all the posts which are tagged with the word
''query''..
fine...
In the
2006 Jul 05
1
Setting a HTML ID with form_tag / form_remote_tag
Hello,
Is it possible to specify a HTML ID with the form_tag / form_remote_tag
methods of the FormHelper? I specifically need this for javascript and
css but can''t seem to find how to do it in the APIs.
Cheers,
Paul Shannon
Web Applications Developer
Codeweavers Limited
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 22
0
form_remote_tag and send_file
All,
I have an existing form that calls an action which in turn creates a PDF
and sends it to the browser using send_file.
I want to change this form to use form_remote_tag so that I can set a
progress bar and once the PDF is finished, the progress bar hides and
the PDF opens.
The send_file data is being sent to the browser, but not displayed
anywhere. When I use a regular form post, it
2006 Jul 27
1
form_remote_tag
How can I get a name/id for a form using the remote form tag?
<%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard }
%>
gives me:
<form action="/timecard/add_to_cart/4"
method="post"
onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'',
{asynchronous:true, evalScripts:true,
2011 Mar 04
1
form_for_tag - difference between that and form_remote_tag and form_for?
What''s the difference between form_for_tag and form_for? And between
form_remote_for and form_remote_tag?
--
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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe
2006 Aug 15
0
Can you use form_remote_tag to upload files?
I have the following form_remote_tag:
<%= form_remote_tag(:update => ''target_lists'',
:url => { :action => ''upload_list'' },
:html => { :multipart => true }) %>
I then submit using a regular submit tag
<%= submit_tag ''Upload List'' %>
Does the Form.serialize call that is
2006 Jul 05
1
Prototype Based Validation with form_remote_tag
Hello,
I am attempting to use validation.js from
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp
e/ with form_remote_tag. The rails form helper binds the needed
Ajax.Updater to the onSubmit action of the form. The validation.js also
attempts to bind to the onSubmit of the form.
The logic that is needed is
if( valid.validate() )
{
...Ajax.Updater...
}
where valid
2006 Jul 05
1
form_remote_tag and update
I have a layout which contains multiple divs, (header, menu, content,
footer), content contains <%= @content_for_layout %>.
I have switched all link_to and form_tag to link_to_remote and
form_remote_tag and they are supposed update the content div.
It is working, however instead of updating just the div content, it is
re-rendering the entire layout within the div.
Hopefully someone can
2006 Jul 11
0
Please please somebody RESCUE me Reg. form_remote_tag !
Hi frenz,
I need to update "div_main_data" on click of one submit button and I
need to update "div_member" on change of one select option. But couldn''t
find any solution at the moment.
If I use -> :onChange =>''this.form.onsubmit()''
this update the whole "div_main_data" as I couldn''t toggle the update
parameter
in
2006 Jul 11
1
form_remote_tag ISSUE !
Hi frenz,
I need to update "div_main_data" on click of one submit button and I
need to update "div_member" on change of one select option. But couldn''t
find any solution at the moment.
If I use -> :onChange =>''this.form.onsubmit()''
this update the whole "div_main_data" as I couldn''t toggle the update
parameter
in
2006 May 12
1
Uploading a file with form_remote_tag problem.
params[uploaded_file] is not recognised when i try form_remote_tag like
this:
<%= form_remote_tag :url=>{:action => "save_file"} ,:html=>{:multipart
=> true} <%=text_field_tag "name"%>
<input type="file" id="uploaded_file_file"
name="uploaded_file[file]"/>
<input type="submit"
2006 Apr 04
1
using form_remote_tag and radio_button
I want the user to select a date using radio buttons. The following
code shows the last 7 days.
<%= form_remote_tag(:update => ''register_order'',
:url => { :action => :register_orders } ) %>
<% 1.upto(7) do |i| %>
<%= radio_button "date", "register_date", i.days.ago.strftime("%Y-%m-%d") %>
2006 Jan 18
0
form_remote_tag and 302 redirects under IE6 bug
I believe I''ve found a bug in which a custom HTTP code handler in the
code generated by form_remote_tag does not get called under IE6. The
below example simply redirects the browser to the value in the
location header when it gets back a 302 redirect:
#### start code ####
<%= form_remote_tag :url => {:action => "comment", :id => @article},