similar to: Ticket #4140? observe_field issue.

Displaying 20 results from an estimated 900 matches similar to: "Ticket #4140? observe_field issue."

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
2009 Jun 14
6
Unable to make observe_field work
I can''t make it work. <%= text_field_tag :friend %> <%= observe_field :friend, :url => friendships_url, :on => :click %> <%= javascript_include_tag :defaults %> Raises the error:Can''t find variable Form. The generated html is: <input id="friend" name="friend" type="text" /> <script
2005 Nov 04
1
prototype EventObserver on radio option elements
Hi all, I just started using prototype 1.3.1. I''ve successfully used Form.Element.EventObserver on a select list and recently tried to add it to radio options. However, I think there is a flaw in how it works with radio options. Radio options are a little unusual in that there are multiple distinct elements, tied together by a common name, where changing one element causes a
2006 Feb 07
1
Help needed with conflicting EventObserver
Hello everyone, I have a page that populates/updates make, model and year select lists via Ajax.Updater and I think that an EventObserver is causing a conflict. Here''s what I''m trying to do. I''m using this page as a create and edit page for a car database. If I''m calling the page in edit mode, I''ll want the make, model and year set (using the
2013 Sep 26
2
Login Problem
Hello All, I am getting a problem while login for inactive users. While login I am getting - Processing by Devise::SessionsController#new as HTML User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected. Inactive users
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 Apr 09
0
Form.EventObserver Incorrect?
After playing with Form.EventObserver for a while, I wonder if it shouldn''t pass the element that triggered the event to the callback instead of the form object itself. Although we pass the form object to the constructor, we are monitoring changes of individual elements. As it stands, there isn''t any way to determine which element fired the event without comparing
2005 Dec 23
1
Overloading error_message_on method in ActiveRecordHelper
Hello all I would like to overload the error_message_on method in the ActiveRecordHelper module in order to emit a span tag instead of a div tag. I try to achieve this by way of plugins: Under vendor/plugins I''ve made a error_messages_on_fix directory, containing init.rb like this: --- require ''active_record_helper_fix'' --- ..and a lib directory 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=>
2011 Mar 11
1
Using dovecot with wordpress/phpass passwords?
Good afternoon, I am trying to setup dovecot to authenticate using the userdata from wordpress. It's being a bit mor difficult than I thought. This is the relevant part of the dovecot-sql.conf default_pass_scheme = CRYPT password_query = SELECT user_pass AS password FROM wp_users WHERE user_email='%u'; user_query = SELECT 501 as uid, 501 as gid,'maildir:storage=51200' as
2005 Dec 27
0
Re: RESOLVED: Overloading error_message_on method in ActiveRecordHelper
Leaving the body of the method the same as the default still throws the "stack level too deep" error. As a matter of fact, it only disappears if I comment out the ''require'' in line 1. As it turned out, it was the method definiton itself that caused problems. Ruby doesn''t have keyword arguments, but I tried calling the method as if it had. But when I changed
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/.
2006 Jun 28
3
observe_field and radio button... does not work?
I try to catch click event on radio button, but nothing is executed.... Tested with RoR 1.1.2 and 1.1.3. What am I doing wrong? <%= radio_button_tag(:city, ''Dublin'') %> <%= observe_field(:citi, :frequency => 0.5, :on => ''click'', :with => "''city='' +
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 Aug 04
2
observe_field for radio_button
Hi, I need to observe a set of radio buttons but am having great trouble. My observe_field looks like this: <%= observe_field :user_select, :frequency => 0, :url => { :action => :admin_control } %> Now it works fine if I use a text_field like this: <%= text_field :user, :select, "size" => 20, "maxlength" => 16 %> But I want a radio button, and
2007 Sep 17
1
observe_field and :function
Hi, I m using the observe_field helper with the :function attribute. If I do the following everything it works without any issue: <%= observe_field ''select_gender'', {:function => "(value == ''2'') ? $(''record_ohrmarke'').value = ''a boy'': $(''record_ohrmarke'').value = ''a
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
2008 Apr 15
2
Asking for help passing variables with an observe_field
Hi, I have the following observe field: <%= observe_field :session_treatment, :url => { :action => ''retrieve_rate'' }, :with => ''treatment'' %> This passes on the ''treatment'' variable to the action, but I''d like to pass another variable and I''m having a hard time figuring out how to write it. Any help would be
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 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 =>