search for: observer_fields

Displaying 11 results from an estimated 11 matches for "observer_fields".

Did you mean: observe_fields
2006 Jul 23
1
some question about ''observer_field''
Is the observe_field (ActionView::Helpers::PrototypeHelper ) can be apply to any html tag? (such as div) I tried to apply ''observe_field'' to observe the content of <div> tag, but, as the observed <div>''s content was changed, there was nothing happend. for example (in test.rhtml): <%= link_to_remote "test", :update=>"content1",
2007 Jun 03
1
observer_field - select form
I want to load a form when a "select form" is changed. I have done this but it doesn''t work( i do not have an error but nothing change when i change the select list): in the view: <code><% form_tag :action => ''update'', :id => @cour do %> <!-- we choose the type of document (which will determine the form to include) -->
2006 Jun 28
1
accessing multiple observe_field from one callback
.... I also tried using the :with => "something" on the definition of the observe_fields and trying to collect them with params[:something] but i get the same problem with instance variables: i can''t access the field info from the other field callbacks. Analysing the code for observer_fields in Agile Web Development with Rails, i found that it uses the ActionController::AbstractRequest class to get the info, but looks like it has the same raw_post buffer for every form, thus overriding the last field information. I wonder, is there any way to get the other field values? Thanks!...
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 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same input field and relying on them to execute in the same order that they appear in the page. This has been working fine in FireFox, but it does not seem to work in MSIE; the requests come in and are processed in a different order. Now, I''ve always been a little hesitant about using this technique, but it always
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]} %>
2006 Aug 16
0
Multiple observer
Hi I have three drop downs (State, City, Locality) and would like to populate City based on State selection and Locality based on City selection. I have observers on two fields (State, and City). The observer_field on state works fine and it populates city based on state selection. But the observer on city doesn''t populate Locality. Now sure whats wrong with my code. here is the
2006 Aug 17
0
AJAX - Having Multiple SELECT (Drop Down), and dependency
Hi I have three drop downs (State, City, Locality) and would like to populate City based on State selection and Locality based on City selection. I have observers on two fields (State, and City). The observer_field on state works fine and it populates city based on state selection. But the observer on city doesn''t populate Locality. Now sure whats wrong with my code. here is the
2006 Mar 23
0
Newbie - populating select list from db - BUMP :)
Hi! in the same problem with a select with some values from db: the following select in test.rhtml: <%= select(:listSetting, :code, @listSettings) %> where @listSettings = ListSetting.find(:all, :order => "code").map {|u| [u.code, u.id] } i have an observer_field defined in test.rhml as below: <%= observe_field("listSetting_code", :update =>
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a select list in a form from a database? I have a form to create a new task. The task is for a client, so there should be a select list populated from my clients table. I thought this would work: <%= select ''task'', ''client_id'', Client.find_all, "id", "name"
2007 Oct 05
4
Ajax request on page load
I''m trying to do something rather simple (I think) but being new to rails, I''m not sure how I should proceed... What I want to do in simple terms is: When the my page load, get some data from a table (let''s call that table items).. so I want to get all my items, and display them in a div... I want to do it via Ajax because I want the user to be able to filter this data