Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2779103.sO63zRiCyQ@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 04 Mar 2014 12:16:09 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <6ecd1d1a-8bd0-4c4f-8f38-c5d6ff8e012a@googlegroups.com> MIME-Version: 1.0 Lines: 41 NNTP-Posting-Date: 04 Mar 2014 12:16:12 CET NNTP-Posting-Host: 9fde76d9.newsspool2.arcor-online.net X-Trace: DXC=B8cQf:Z\Wa>^8FBo0_81f>A9EHlD;3Yc24Fo<]lROoR18kF On Monday, March 3, 2014 6:31:53 PM UTC-6, Mel Smith wrote: >> Michael said: >> > >> > You want to reverse the rows before you have all the rows? > [...] >> No, after the table is completely loaded, then I wish to hide the >> table, >> reverse the rows, then show the table > > One approach is to create a second tbody in the table and then copy/move > the old rows from the bottom up into the new tbody and then remove the old > tbody when complete. > > > > Evertjan is correct though that it would be wiser to populate a different > data structure and then reverse it there before populating the table. That would require 1a. Creating a native object. 2a. Copying the table (body) data to that object. 3a. Reversing the order of the data in the object. 3b. nothing 4a. Copying the data from the object to the DOM object. 4b. Copying the data from the object to the DOM object in reverse order. By contrast, you could just 1c. Reverse the order of the nodes in the document tree in place. Why is the former wiser? -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.