Displaying 20 results from an estimated 1000 matches similar to: "accessing multiple observe_field from one callback"
2006 May 23
1
Help with observe_field
Folks,
When I use observe_field, I get a javascript error "Form is not
defined". Any thoughts?
__View: search.rhtml__
<label for="search">Search:</label>
<%= text_field_tag :search %>
<%= observe_field(:search,
:frequency => 0.25,
:update => :search_hits,
:url => { :action =>
2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
I''d like to use observe_field to watch a field, and then when it changes
send the entire form to the server. I had been using
<%= observe_field ''entity_name_''+@account.id.to_s, :frequency => 0.5,
:update => ''auto_complete_''+@account.id.to_s, :url =>
{ :controller => ''committees'', :action=>
2008 Jun 19
5
observe_field
I have been trying to pass a collection_select parameter and a text field
parameter to observe_field so that it watches both the parameters
simultaneously.
but what i can see is , when i select some value from drop down and dont
write anything in text field its giving correct results.parameters are also
correct passed, but just after that if i write something in text field that
value also get
2007 Jul 14
3
observe_field, does this generate HTML?
I don''t have Rails installed at the moment, I''d like to check myself,
but it''s just a simple curiosity.
observe_field fits into replacement tags <%= %>, which caught my
attention because as far as I know it''s just javascript observing a
field and should not stick anything into HTML. Is <%= merely used as an
enabling method, or will there actually be
2006 Apr 06
0
3 doubts on observe_field
Dear friends, with the yours aid already I obtained to use
observe_field, but still I am with some problems and necessary again.
They are three questions to long of the source code below.
Since already I am grateful for the tips.
==== _form.rhtml
<!--[form:city]-->
<p><label for="city_state_country_id">Pa?s</label><br/>
<select
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
I have a pretty complex form with many text fields and a number of
selects. We let the user add multiple types of associated objects to
the parent object and to edit the values for those associated objs, so
the form can have something like the following number of fields on the
page:
9 text fields + 3 selects + a*(1 text + 1 select) + b*(1 text + 1
select) + c*(1 text + 1 select) + d*(1 text +
2006 Apr 15
3
Multiple Paramters and observe_field :with
Hi All:
I have searched high and low with no success. Does anyone know of a way
to pass the values of more than one form field through the :with
parameter of observe_field?
Basically I have two fields on the form with number values. When the
user changes the value of one I would like to send the values of both
fields to the controller for calculations and return the result to the
user on
2006 Jul 21
4
observe_field submit behavior
I am using observe_field on a number of multi-selects and checkbox form
elements whose values would normally come in as arrays on a normal
(non-Ajax) form post.
I understand that by using the :with => ''name'' I will get name=value in
the request.raw_post however if the field I am submitting has mutliple
values and the name is of the form ''name[]'', I get
2008 Dec 22
2
how to use the observe_field to get more than one field?
Hi,
I have two selctdropdown boxes name like "resolution" and "codecname".
Now i am able to get the single field value either from resolution or
codecformat select box.
ex:
observe_field ''resolution''
or
observe_field ''codecforamt''
is there any way to get the two fields in to the observe_field method ?
Can anyone give me suggestionfs or
2005 Nov 27
0
How to get raw_post in functional tests
Hi !
I'm testing PayPal integration, and am using the Paypal gem. The
Paypal gem requires the raw POST data, and not the pre-munged version
that Rails uses.
Running in dev mode, everything works fine, but in the tests, I can't
seem to get at the data.
I did:
class ActionController::TestRequest < AbstractRequest #:nodoc:
def raw_post
raise "RAW_POST Request"
end
end
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2008 Jul 09
4
Auto Postback in Ruby On Rails
in some other language have a concept e.i "auto postback"
So, in Ruby on rails is there any such option e.i "auto postback"
or same as "auto postback"
basically what i want ot do is that i have 2 select box
One for "Industry" and other for "Chemical"
1st we show all the industry in "Industry" select box.
if we select any 1 industry
2007 Mar 07
4
Ajax and IE6 - is there some sort of "trick"?
Hi,
I''ve got some Ajax stuff that shows more or less of a complex form based
on a radio button selection. A "radio_handler" controller action is the
action for a form handler. Some seemingly simple "replace_html" fires
as a result of different radio buttons being chosen (which should then
show more or less of the form).
This all works just great on Mac Safari and
2006 Nov 04
4
how to get observe_field to use GET method?
Hi All.
I am trying to set-up observe_field so that it uses the GET method (To
work with a RESTful controller).
<%= link_to_remote("Test", :update => "main", :url => { :controller =>
"projects", :action => "show", :id => "3"}, :method => "get" ) %>
<%= observe_field("project_selector", :update
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi,
I''m confused about how form verification with AJAX works. Let''s say I have a
''new.rhtml'' view that contains a form with two fields, and the form action is
''create''. Let''s assume that I also want to do some type of data validation on
one of the two fields via AJAX before I submit the form. But since I''ve
already
2006 Aug 15
4
observe_form not serializing form
I want to use observe_form to automatically save notes in a text_area.
This is the code I have:
<form id=''notes_form''>
<%= text_area :contact, :notes, :cols => 40, :rows => 10,
:id =>''notes_text_area'' %>
<%= observe_form(''notes_form'',
:frequency => 1,
2006 Feb 11
1
How to POST raw data?
Hi,
I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.
Can you help me with this?
Thanks,
Yash
--
Posted via
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date
2009 Jul 29
6
Doubt in nil object with ajax
hi this is my htnl
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<%= form_tag nil, { :id => ''search_form'' } %>
<%= text_field ''recipe'', ''name'' %>
<%= end_form_tag %>
<div id="recipe">
</div>
<%= observe_form :search_form, :frequency =>
2006 Jul 11
9
problems with observe_field
Hi all, I''m having problems with an observe_field, this is the view:
<%= form_tag %>
<div id="content">
<p>Customer:
<select name="cliente_id" id="cliente_id">
<option value="">Select a customer</option>
<%= options_for_select Cliente.find_all.collect {|c| [c.razon_social,
c.id]} %>