similar to: Multiple Paramters and observe_field :with

Displaying 20 results from an estimated 2000 matches similar to: "Multiple Paramters and observe_field :with"

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
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
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
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
2006 Jun 28
1
accessing multiple observe_field from one callback
I have a form that has 4 text_field entries, each one with an observer_field and i want to access the data that is currently inserted on every field from the :update method for each field. i tried using instance variables but it appears that each text_field creates an instance of the searchcontroller for its own. I also tried using the :with => "something" on the definition of the
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 Apr 08
0
Understanding observe_form...
Hi all, I''m trying to understand the workings of the observe_form function. In my application I have a search form with a number of parameters, and I want to have a live search counter on screen, so as the user chooses different parameters, she can see a live count of how many search results match. What I''m not clear on is how to use the "with" option, and what
2006 Apr 15
0
Ticket #4140? observe_field issue.
Take these two basic bits of HTML. <input id="user_email" name="user[email]" size="30" type="text" value="" /> <script type="text/javascript"> //<![CDATA[ new Form.Element.EventObserver(''user_email'', function(element, value) {new Ajax.Request(''/account/validate_user_email/0'',
2006 Mar 01
1
Accessing AJAX''ed elements via javascript
Is there a way to get access (via javascript) the page elements that were populated with AJAX (observe_field)? If you look at my source I have: <select name="resource[sub_focus_id]" id="resource_sub_focus_id"></select> But the actual select menu is filled with options because I used the observe_field to fill in the options. Now I want to be able to access
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 Jan 09
2
Using RJS templates with observe_form
Hi there, I''ve been checking out RJS templates, and have been trying to use them with the observe_form helper. However, the form values are no longer being passed in the params (as soon as I point the action to the non-rjs and add the ''update'' clause everything is working again). Is this expected? Cheers, Dave -------------- next part -------------- An
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 =>
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
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...
2010 Jun 04
6
Ajax fails in IE8
hi guys, I am testing a new optional funtionality in my site with IE 8 after success with Firefox 3.6.3, chrome and safari. The new functionality basically sees a "sub category" drop down list get generated in my form as soon as a "Category" value is selected from the "Category" drop down list. I have been using the standard rails api such as observe_field, and
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 Jul 12
2
Can''t get observe_field to take a variable for a field name
The subject pretty much says it all: I can''t?get observe_field to take a variable for a field name I''ve tried: <%= observe_field(var_name, ... <%= observe_field("#{var_name}", ... <%= observe_field(:"#{var_name}", ... No luck. Am I missing something? Thanks, : ) Jason -- Posted via http://www.ruby-forum.com/.
2010 Feb 08
1
can use use observe_field with a 3rd party server?
Hi- I''m trying to implement an auto-complete using Yahoo''s autocomplete server, which basically suggests search completions: http://ff.search.yahoo.com/gossip?output=fxjson&command={your searchterms}'' if you want to see the results in your browser, use xml instead: http://ff.search.yahoo.com/gossip?output=xml&command={your searchterms}'' So, I can
2006 Oct 18
1
observe_field, GET method and RESTful controllers
Hi all. I am trying to work with restful rails and have come across a quandry with observe_field. I basically want the observe field to call a show action on a restful controller. However I am unable to do so because I cannot get the damn thing to use the get request properly. If I use the following: <%= observe_field("project_selector", :update =>