Hi all, Well, I upgraded to prototype-1.6.1_rc2 and it solves the 'dom:loaded' issue. Therefore, I prefer to wait for the official 1.6.1 release to do the upgrade for my production environment. When will it be available ?
Thank you, -- Sabri. On Apr 28, 2:35 pm, Sabri LABBENE <sabri.labb...@gmail.com> wrote: > On Apr 20, 3:30 pm, Sabri LABBENE <sabri.labb...@gmail.com> wrote: > > > Hi all, > > I'm using scriptaculous-1.8.0 with prototype-1.6.0.3. > > I have an autocmpletion feature in my application (using > > Ajax.Autocompleter). > > I'm facing troubles in getting it work withIE7but it works fine with FF3. > > I tried to check if the tutorial works already > > (http://wiki.github.com/madrobby/scriptaculous/autocompleter-local). > > I didn't succed to make it work neither with firefox nor with IE ! Is there > > someone that have already tried the tutorial ? > > Finally I succeded to run the localautocompletertutorial. > I didn't thought that it was mandatory to load other js modules > 'effects, controls, etc.' Anyway .. > > > I've also noticed that autocompletor unit tests don't pass forIE7. I think > > that this cabe a source of trouble. > > > Does anyone have already faced issues withautocompleterinIE7? > > If the bug comes from prototype itself, is there any change to have a fix > > for that soon ? > > Actually after debugging my application, I found that my problem comes > from the fact thatIE7doesn't deal correctly with 'dom:loaded' > event. > It seems that the event is fired too early. Here is my code: > > //In my constructor, I bind an event listner to dom:loaded event > this.registerOnLoadEvent = this.registerOnLoad.bindAsEventListener > (this); > document.observe('dom:loaded', this.registerOnLoadEvent); > > What I expect here is that registerOnLoad won't be executed unless dom > has completed loading all contents. > > registerOnLoad: function () { > //building params for the Ajax.autocompletercall > ... > > // List div > var update = Builder.node('div', { > 'id': 'user_search_choices', > 'class': 'searchAsYouType'}); > Element.hide(update); > > document.body.appendChild(update); > > new Ajax.Autocompleter..... > > } > > Is there a solution to make a correct test on dom:loaded event. > In other words, how can I check if the dom has completed loading > properly ? > > I tried this solution but it changes nothing : > > this.registerOnLoadEvent = this.registerOnLoad.bindAsEventListener > (this); > if(!$("__onDOMContentLoaded") || $("__onDOMContentLoaded").readyState ! > = "complete") { > document.observe('dom:loaded', this.registerOnLoadEvent);} > > else { > this.registerOnLoad(); > > } > > Any help please ? > > Best Regards, > -- Sabri. --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---