Displaying 20 results from an estimated 100 matches similar to: "Help needed with conflicting EventObserver"
2006 Feb 09
5
Ajax.Updater not populating element - please help
Hello everyone,
This is related to my post a few days ago regarding multi select
lists. I''ve rewritten the code and now can''t seem to get the
Ajax.Updater in getModels() to "execute", and the element never gets
populated.
I know it''s something obvious and hope someone could point it out to me.
Thanks for any help.
Here''s my code:
<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 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
2008 May 13
2
Calling C code from R...wrapping C structures
Hi everyone,
I am currently trying to call some C code from R, specifically calling a
function which populates a C struct.
typedef struct{
// contents
} Model;
void test(Model *m){
// fill the struct with crap
}
I compile the C code into a shared library, which loads into R properly. My
simple test functions work (i.e adding numbers etc)
setModel <- function(){
2006 Feb 13
1
Not able to see length in another function
Hello everyone,
I have the following code that builds <option> into a <select>.
buildModel() is called first, then setModel().
For some reason, I can''t get the length of the "model" options in
setModel(), but can after they are built in buildModel();
function buildModel(originalRequest, json) {
var model = $(''model'');
//might need to
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 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;})
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
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
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
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/.
2010 Dec 24
0
Wine release 1.3.10
The Wine development release 1.3.10 is now available.
What's new in this release (see below for details):
- Support for notification balloons in system tray.
- Obsolete AudioIO sound driver removed.
- More work on ActiveX support.
- Various MSI fixes.
- Preloader now used for 64-bit too.
- Translation updates.
- Various bug fixes.
The source is available from the following
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
2010 Nov 12
0
Wine release 1.3.7
The Wine development release 1.3.7 is now available.
What's new in this release (see below for details):
- Improved system tray support.
- Better support for installers with assemblies.
- Many of the msvcrt "secure" functions implemented.
- A lot of fixes to the GStreamer support.
- Many MSXML improvements.
- Translation updates.
- Various bug fixes.
The source is
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
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
libswfdec/swfdec_as_interpret.c | 3
libswfdec/swfdec_as_strings.c | 14
libswfdec/swfdec_load_object.c | 178 +---
libswfdec/swfdec_load_object.h | 21
libswfdec/swfdec_load_object_as.c | 71 +
libswfdec/swfdec_loader.c | 75 +
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