similar to: Ajax and observe_field not updating specified DIV

Displaying 20 results from an estimated 100 matches similar to: "Ajax and observe_field not updating specified DIV"

2006 Jul 20
0
RJS and calendar_helper troubles .... tab characters covering web page
We have implemented calendar_helper.rb to generate an ajaxified calendar using rjs templates. Everything worked fine until we added a drop down to select the current month. Now when select a month and the calendar refreshes to that selected month we get a ton of ''\t'' displayed all over the page inside what looks like to be a javascript debug print statement ( try {} catch{} block
2006 Dec 05
1
has_many :through questions
I have a database with 4 tables Months has_many :weeks Weeks has_many :days Days has_many :hours Hours Weeks belong_to :month Days belong_to :week hours belong_to :day I need to access the month_id in the Hour.rb model. find(:first, :conditions => ["user_id = ? AND month_id = ?", user_id, month_id]) Thanks -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
5
RoR 1.1 RJS problem
I''ve been playing with the new RJS stuff in RoR1.1, and I have to say that I''m am extremely impressed, NICE! work guys. However, I seem to be having a bit of a problem. I promise, I''ve googled the hell out of it and haven''t found an answer. Set up: Putting together a little proof of concept app. Display a form (index.rhtml) that just has a button to
2006 Nov 04
0
need help with observe_field
Hey all, I''m trying to update a div everytime the value of my textbox is changed: here is _form.rhtml: <p><label for="bookmark_address">Address</label><br/> <%= text_field ''bookmark'', ''address'' , :size => 120 %></p> <div id="ajaxtitle"> <%= render :partial =>
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
2006 Aug 13
2
Catching "keypress" event with observe_field
I''m desperately trying to update a div when a key is pressed in a text field. Eg. : <input type="text" id="field"> <div id="area"></div> <%= observe_field :field, :url => {:action => :myAction}, :update => :area, :with => "text_param", :on => ''keypress'' %> This does not seem to work, and I
2006 Nov 04
0
observe_field and datetime_select
Hello all, I have a form with a datetime_select. I need to use the actual time selected in an action triggered by observe_field. Could make it work with other select fields, but not with datetime_select. Seems that observe_field can locate the element just by the id (not by the name). If so, how can I set the ID of datetime_select ??? I''m in this for some hours, but could not find a
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 12
1
multiple observe_field''s and IE 6
Has anybody ran into any problems using mulitple observe_field or multiply remote_function calls when the browser is IE? I have a search and retrieve app that works very well in Firefox or Safari, but in IE, the app sometimes just sits there for minutes and then catches up all at once, or never at all. I just want to know where to start looking to solve this one, as most of our customers will be
2006 Jun 27
0
Using passed-in locals in observe_field in a partial
I need to be able to assign a value to the field_id field of observe_field inside a partial. Ideally, it would look something like: <%= observe_field(local_variable_name1, :url => {:action => ''some_constant'', :id => local_variable_name2}) %> I''m not having a problem with the assignment to :id of local_variable_name2. But I can not figure out how to use
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 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 May 23
0
observe_field internet explorer
Hi, I have the following observe_field which works in Firefox but doesn''t do anything in Internet Explorer .. as though it doesn''t exist. How can I debug this in bloody MS world. <%= text_field :drawing, :job_no, :title =>"Job ''begins''", :autocomplete => "off", :onclick => "$(drawing_job_no).value =
2006 May 31
2
observe_field gets "Form is not defined"
trying to do an observe_field, but i''m getting a javascript "Form is not defined" error [code] <label>Account Type:</label> <%= select :user, ''tmp_type'', [''choice_one'',''choice_two''], { :prompt=>"select account type" } %> </p> <%= observe_field :user_tmp_type, :update
2006 Apr 04
0
Does observe_field work with date_select?
I can''t get observe_field to do anything with my date_select. Here''s the rhtml code: <%= date_select ''course'', ''lab_start_date'' %> <%= observe_field(:course_lab_start_date, :frequency => 0.5, :update => :course_lab_start_date_div, :url => { :action => ''preview_text''}) %> My
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
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 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 24
0
observe_field inside of a form?
Hi I''ve just started experimenting with AJAX in Rails and have come across this issue. I''m trying to set up some ajax form validation on a login form. I set up an observe_field method for the username field but the action for the containing form is being called and rendered instead of the action I specify in the observe_field method. All of the observe_field examples
2006 Apr 27
1
help with observe_field :on
Try as I may, I cannot figure out how to make the :on option work with the observe field method. I have looked into the javascript that is eventually called, and it does not appear that there is any way to override which event is bound for which control. Any help would be greatly appreciated. Thanks -- Phil