Javascript is really slow, as far as my javascript programming goes, anyway. I've tried creating tables from scratch, using createElement and insertRow and so on and it worked incredibly slow. Worse, the javascript executions have a timeout defined by the browsers, so the only solution for this was to use setTimeOut.
Lately, I've reached the conclusion that the most probable cause for this is using DOM elements. For example sorting a select elements options with 200 items took me 10seconds, while copying the value and text in a created object, sorting, then copying the values back worked in less than 3 secs. But trying to optimize speed in Javascript by using this kind of methods is like reinventing the DOM. RenderControl works very fast compared to the first option. There is the issue of traffic. I would suggest an algorithm that would compress and decompress HTML trafficked around rather than working with the DOM. A simple LZ could do wonders. There is also such thing as Gzipencoded pages by setting something in the server. But I have no idea how it would work on Ajax requests. Anyone? ____________ Costin Manda ECRM Europe ----- Original Message ----- From: "dulgao" <[EMAIL PROTECTED]> To: "Ajax.NET Professional" <[email protected]> Sent: Wednesday, October 18, 2006 12:29 PM Subject: [ajaxpro] Re: RenderControl & HtmlUpdateControl vs Just Javascript (Less Trafic) > > good say! > > I'm think method of fitted you than is good method.so, I'm love the > second method becouse it's post data low ,improving capability. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" 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/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/ Don't forget to read my blog at http://weblogs.asp.net/mschwarz/ The open source project is now located at http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro -~----------~----~----~----~------~----~------~--~---
