search for: eventobservers

Displaying 16 results from an estimated 16 matches for "eventobservers".

Did you mean: eventobserver
2005 Nov 04
1
prototype EventObserver on radio option elements
...adio.b'', function(element, value) { alert(element.id + ", " + element.name + ", last value: " + this.lastValue + ", value: " + value); } ); A simple workaround you can put in your own code is to reset the "lastValue" of all EventObservers on related radio options. But this requires you to assign each EventObserver to a variable and know about all the others. Another workaround is to modify prototype to make the Radio option events fire on "onchange", then eliminate the code that checks to see if the value has changed...
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
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page to watch for changes to text fields (haven''t tried forms) can have a non-negligible effect on the CPU cycles used by the browser process. Nothing dramatic, to be sure, but unnecessary. Autocompleter.Base (controls.js) follows a smarter strategy to watch for changes. Currently this functionality is tied
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
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
2010 Dec 02
2
foreman dropdown menu broken
Hi, i just installed foreman from the git repository and the dropdown menu does not work. Don''t know xhtml well but opera tells me: Uncaught exception: ReferenceError: Undefined variable: Form Error thrown at line 3, column 0 in http://130.149.58.152/: new Form.Element.EventObserver(''settings_dropdown'', function(element, value) {window.location.href = value;})
2007 Nov 12
15
If form changed ask if you really want to exit page...
First things first: Hi all! I''ve been sucked into prototype and script.aculo.us develpment thanks (because of?) the Symfony PHP framework... I''d like to implement a feature on some admin pages, but I can''t seem to find the right search term to google it; I want to ask the user to confirm exit of a page, if she has changed anything on the forms displayed on it. I have
2006 Apr 26
6
Immediate help needed
I have posted this previously also but haven''t received any help. So, if somebody could look into it and guide.. I want to validate the extension of files that I am uploading. Like I want only the doc/pdf files to be uploaded.. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
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'',
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
2006 Jul 19
1
Catch 22 with after_save. Please help.
I have a pretty strange problem. Here is basically what I have to demonstrate my problem: class Event < ActiveRecord::Base def after_create AnotherClass.find_event(id) end end class AnotherClass < ActiveRecord::Base def self.find_event(event_id) e = Event.find event_id end end Here is the catch 22 and it''s quite annoying. Basically ActiveRecord puts to whole save
2005 Sep 08
1
Browser support and the increasing # of js frameworks
I''m wondering what other folks think of Dojo (0.1 just released), MochiKit, and some of the other js frameworks relative to prototype/scriptaculous (p/s). P/S seems to have broader support although I''m not sure about IE 5.5 in the other frameworks. A second question is related. I''ve got some AJAX working with prototype + behaviour, and I''m building in refresh
2008 Apr 03
0
ActiveRecord::Observers?
wow, backgroundrb is great. in about 3 hours we had converted all our daemons over from daemon-generator to backgroundrb, with much more control and power. it''s awesome. the only problem is that we can''t seem to get the observers to load. in my worker, I go like this: def create(args = nil) ActiveRecord::Base.observers = :event_observer
2006 Apr 27
5
Realtime Form Validation Plugin Available
Granted, I''m still very much a newbie, but after reading an article on AJAX that basically states at one point that just because you can use AJAX doesn''t always mean you should, I have to ask: Why bother contacting the server (even if it is an insignificant amount of bandwidth) to validate the sanity of form data (unless you''re actually validating against something in
2006 Jan 23
7
Tooltips.js
Hi, there already had been a Tooltips implementation [1] but i wasn''t to happy with that one, not only because they didn''t support simple mouse-hover tooltips (just as they appear when you are using title attributes) But writting this lib was also a good way to get into script.aculo.us and prototype.js. (and i can''t say how impressed i am) So here it is: An all
2005 Jul 06
16
Autocompletion not working in Konqueror
I''ve just had a look again at the autocompletion demo that Thomas put up at http://script.aculo.us/demos/ajax/autocompleter Unfortunately, in Konqueror (3.4.1) it doesn''t work at all. Not even an error is triggered. It does work nicely in Firefox. How about Safari? I don''t have the time right now to track this down systematically (maybe latter), but just from