similar to: Ajax observe_field not vorking on Rails

Displaying 20 results from an estimated 100 matches similar to: "Ajax observe_field not vorking on Rails"

2010 Aug 06
1
apply family functions
Hi all, I would like to flag each record in the data according to certain conditions as specified below. For example, If "Close_date" in *dat* is between ("Open" & "Close") or ("Open1" & "Close1") or ("Open2" & "Close2") in *oc, *flag the records as "Valid", otherwise "Invalid" I would like to
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 Dec 14
12
Saving dates
Hi having trouble saving dates in my form i have the following in the view <%= date_select("details", "open_date") %> and i have @exhibition.open_date = params[:details][:open_date] and then @exhibition.save All the other values form (not seen here) get saved but not the dates. What am i doing wrong ? -- Posted via http://www.ruby-forum.com/.
2005 Jun 20
2
MIT Kerberso or Heimdal Kerberos what is the question?
I have some problem whit Kerberos. OS: FreeBSD 5.3 Domain: W2k3 native mode. 1)I am Installing Heimdal 0.6.1 over port. Config /etc/krb5.conf %/usr/local/bin/kinit ivan ivan@NKMK.RU's Password: kinit: krb5_get_init_creds: Response too big for UDP, retry with TCP 2)Compile and install Heimdal 0.6.4 over source %/usr/local/bin/kinit ivan ivan@NKMK.RU's Password: kinit:
2007 Mar 20
2
Progressive AJAX Filter
Hi Guys, In my rails app, I present a table of data that I want to be able to filter using multiple criteria. I''ve created a one-line table of input fields above my table to accept filter criteria like this... <%= javascript_include_tag :defaults %> &nbsp; <form name="sform" action="" style="display:inline;"
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 Jul 20
1
Ajax and observe_field not updating specified DIV
I have a page that has a dropdown which i''m using observe_field on to make an ajax call back to my controller. The page initially displays fine. The method is invoked in my controller when i select a choice in the dropdown and I have an rjs file which is then invoked. The rjs file looks like this: page.replace_html ''embed_calendar'', :partial =>
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'',