Hi, I have the same kind of issue: 1. I have an <li>...<input />...</li> 2. I create an Autocompleter on this INPUT 3. I do $(li).clone(true); 4. I create an Autocompleter on this INPUT
It works well on Firefox but it is broken on IE6. The 1st Autocompleter is called on the 2nd Input. Workaround: $(inut).stopObserving(); The underlaying code do Event.observe(input). And IE create weak cloned DOM element. - But it is really weird Event.observe() do not work ? - It seems Element.store() and Element.Retrieve() are also wrong I tried prototype function Element.clone(true) it fix the store/ retrieve issue but do not sole the Event.observe() Where did I miss something ? Is there a way to unregister an Autocompleter ? Regards, Jp On 8 avr, 10:22, Guillaume Lepicard <[email protected]> wrote: > Hi, > You should use full dom creation for your new inputs instead of innerHTML, > and use prototype for manipulating Events and DOM > > > > On Thu, Apr 8, 2010 at 2:04 AM, Albanach <[email protected]> wrote: > > Hi, > > > I have a form where I dynamically add extra fields. > > > Here's my example code: > > >http://pastie.org/908497 > > > While I can use autocomplete on my first input field, I am unable to > > get it to work on any fields that I add after the page loads. > > > Don't suppose anyone can offer any suggestions as to how I might > > achieve this? > > > Thanks, > > > Russell. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Prototype & script.aculo.us" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<prototype-scriptaculou > > s%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
