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 it''s form generation. Between lines: 645-672 I had to add this line to the input field and the textarea field: textField.id = ''editor_field''; With the above code, i was able to invoke the autocomplete function. I''m not sure how to add this to an "enhancement" list (I tried at script.aculo.us, but i got "forbidden"). So if someone can pass this along for me to the developers that would be great. Thanks! Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
With // script.aculo.us controls.js v1.8.0_pre1, Fri Oct 12 21:34:51
+0200 2007 you could find
Line 642: this._form.id = this.options.formId;
Then I can conclude you could use an option called formId to set the
form id something like
new Ajax.InPlaceEditor(..., ...., {formId: ''myForm''});
See you!
On Nov 15, 9:09 pm, Loony2nz
<Loony...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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 it''s form generation.
>
> Between lines: 645-672 I had to add this line to the input field and
> the textarea field:
>
> textField.id = ''editor_field'';
>
> With the above code, i was able to invoke the autocomplete function.
>
> I''m not sure how to add this to an "enhancement" list (I
tried at
> script.aculo.us, but i got "forbidden").
>
> So if someone can pass this along for me to the developers that would
> be great.
>
> Thanks!
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Garito, Thanks for your help, but unfortunately, I''m not looking for a form ID. I''m trying to focus on an input field in the form. Since I can''t get to the <input> via "ID" because prototype''s library doesn''t insert this feature when it builds the form, I had to modify prototype to do so. I''m not sure if this is an enhancement or a bug or I''m just hacking it because I don''t know how to do it properly, but it works for me. --chris On Nov 17, 7:23 am, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> With // script.aculo.us controls.js v1.8.0_pre1, Fri Oct 12 21:34:51 > +0200 2007 you could find > > Line 642: this._form.id = this.options.formId; > > Then I can conclude you could use an option called formId to set the > form id something like > > new Ajax.InPlaceEditor(..., ...., {formId: ''myForm''}); > > See you! > > On Nov 15, 9:09 pm, Loony2nz <Loony...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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 it''s form generation. > > > Between lines: 645-672 I had to add this line to the input field and > > the textarea field: > > > textField.id = ''editor_field''; > > > With the above code, i was able to invoke the autocomplete function. > > > I''m not sure how to add this to an "enhancement" list (I tried at > > script.aculo.us, but i got "forbidden"). > > > So if someone can pass this along for me to the developers that would > > be great. > > > Thanks! > > Chris--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, sorry! On Nov 25, 6:49 pm, Loony2nz <Loony...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Garito, > > Thanks for your help, but unfortunately, I''m not looking for a form > ID. I''m trying to focus on an input field in the form. Since I can''t > get to the <input> via "ID" because prototype''s library doesn''t insert > this feature when it builds the form, I had to modify prototype to do > so. I''m not sure if this is an enhancement or a bug or I''m just > hacking it because I don''t know how to do it properly, but it works > for me. > > --chris > > On Nov 17, 7:23 am, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > With // script.aculo.us controls.js v1.8.0_pre1, Fri Oct 12 21:34:51 > > +0200 2007 you could find > > > Line 642: this._form.id = this.options.formId; > > > Then I can conclude you could use an option called formId to set the > > form id something like > > > new Ajax.InPlaceEditor(..., ...., {formId: ''myForm''}); > > > See you! > > > On Nov 15, 9:09 pm, Loony2nz <Loony...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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 it''s form generation. > > > > Between lines: 645-672 I had to add this line to the input field and > > > the textarea field: > > > > textField.id = ''editor_field''; > > > > With the above code, i was able to invoke the autocomplete function. > > > > I''m not sure how to add this to an "enhancement" list (I tried at > > > script.aculo.us, but i got "forbidden"). > > > > So if someone can pass this along for me to the developers that would > > > be great. > > > > Thanks! > > > Chris--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, i had the same problem. after updating my control.js the problem
is still there.
This is my code:
<div id="div_element_id">Type here!</div>
<div id="editor_field_auto_complete"></div>
<%= in_place_editor(''div_element_id'', {:url =>
url_for(:action =>
"some_action"), :size => 40}) %>
<%= auto_complete_field ''editor_field'', {:url =>
{:action =>
"autocomplete_action"},:size => 10} %>
I''ve got this error:
this.element has no properties
baseInitialize(null, "editor_field_auto_complete", Object)controls.js
(line 58)
initialize("editor_field", "editor_field_auto_complete",
"/cars/
autocomplete_action", Object)controls.js (line 337)
create()prototype.js (line 37)
[Break on this error] this.options.paramName = this.options.paramName
|| this.element.name;
So i can''t find the mistake, maybe you see what''s wrong.
Thanks!
On 15 Nov., 21:09, Loony2nz
<Loony...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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 it''s form generation.
>
> Between lines: 645-672 I had to add this line to the input field and
> the textarea field:
>
> textField.id = ''editor_field'';
>
> With the above code, i was able to invoke the autocomplete function.
>
> I''m not sure how to add this to an "enhancement" list (I
tried at
> script.aculo.us, but i got "forbidden").
>
> So if someone can pass this along for me to the developers that would
> be great.
>
> Thanks!
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---