On Tue, Sep 22, 2009 at 9:49 AM, DBJDBJ <dbj...@gmail.com> wrote: > if huge ajax result sets do result in generation of huge dom > collections , even direct dom manipulation will show a visible (over 1 > sec) delay. >
I manage thousands of records for different collections without problems in internet Explorer 6 to 8 Strategies are different. If the list of option is static I never duplicate or recreate it, I simply switch it when necessary. In few words a list of rows with same massive option list will contain selects with a single option <select name="massive-list-1"><option value="whatever">This Option</option></select> there is no massive option list displayed until the user act over the option. At that point JavaScript replace the option with the one with massive list, when user select something different, the select is replaced back into <select name="massive-list-1"><option value="other ever">Other Option</option></select> In this way the DOM is light, and no browser has to render/manage thousands of options more than once and just temporary. This is because JavaScript has zero problems to manage thousands and thousands of objects, while more nodes we add in the DOM more the engine will slowdown to manage them. Other strategies: get thousands of records and shows them via paginator based on Ajax, if necessary, or RAM. If the paginator will have a search field to filter data you'll never need to show 4000 options in a select, quite useless from UX point of view, and you make the selection faster and more friendly. For all these things I have to say I am not using jQuery, but I hope these hints are useful. Regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---