search for: baseinitialize

Displaying 6 results from an estimated 6 matches for "baseinitialize".

Did you mean: aceinitialize
2006 Feb 10
8
Prototype Inheritance example
...great help. I have looked through the controls.js of the scriptaculous library and found something like the below code, but everytime I ran it I would get a constructor error. Thanks for any help; Looking for something like: MyControls.TextBox = Class.create(); MyControls.TextBox.prototype = { baseInitialize: function(loadCallback, saveCallback, saveOptions) { this.loadCallback = loadCallback; this.saveCallback = saveCallback; .... }, Save: function() { //do save operation using options } }; MyControls.EditableTextBox = Class.create(); Object.extend(MyControls.EditableText...
2006 Feb 24
1
Autocompleter Problems
...leter(...) is not getting called. I''ve put in a alert in control.js: Autocompleter.Local = Class.create(); Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), { initialize: function(element, update, array, options) { window.alert("GOT CALLED"); this.baseInitialize(element, update, options); this.options.array = array; }, This does not get called at all. My code in my view is as follows: <%= text_field_with_auto_complete(:partner, :name,{:size=>10}) %> which produces the javascript: //<![CDATA[ var partner_name_auto_completer = new Ajax....
2007 Jan 17
0
Triggering Autocompleter by button
...seem to handle the response. ---------------------------------------------- Ajax.TriggerableAutocompleter = Class.create(); Object.extend(Object.extend(Ajax.TriggerableAutocompleter.prototype, Ajax.Autocompleter.prototype), { initialize: function(element, update, url, options) { this.baseInitialize(element, update, options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this); this.options.defaultParams = this.options.parameters || null; this.url = url; this.cache = {}; if(...
2007 Nov 15
4
Ajax.InPlaceEditor: controls.js update
I''m not sure if this is a bug or not, but I had to patch controls.js file to accommodate the idea that I had planned. I had to combine Ajax.InplaceEditor and AutoCompleter for a "tagging" feature at my office. With the autocompleter, I need to target an INPUT FIELD by ID. However the generated INPUT field from the Ajax.InPlaceEditor did not include this attribute in
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...(a newline), as it // allows smart autocompletion after linebreaks. if(typeof Effect == 'undefined') throw("controls.js requires including script.aculo.us' effects.js library"); -var Autocompleter = { } +var Autocompleter = { }; Autocompleter.Base = Class.create({ baseInitialize: function(element, update, options) { - element = $(element) + element = $(element); this.element = element; - this.update = $(update); - this.hasFocus = false; - this.changed = false; - this.active = false; - this.index =...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server