quick string manipulation table


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
There is a table on the 5K row. And need to hide/show selections of 1K rows. Conventional option $(#table .need_hide).hide() works for very long. Minutes, depending on the browser. There are options to do the same, this means js or to transfer to the server only?
by | 8 views

7 Answers

0 like 0 dislike
Really helps a new technique: to register the class only one, parent element and set the visibility in css:
\r
\r
\r#sometable.do_hide .need_hide { display: none; }
\r
\r
...
\r
$('#sometable').addClass('do_hide');
\r
by
0 like 0 dislike
If it is necessary on JS the fastest to abandon abstractions.
\r
\r
 var trs = document.getElementById("table").getElementsByTagName("tr"); for (var i=0; i
by
0 like 0 dislike
Are you sure you really need 5 thousand rows of data on one page? I would break the data on the server-side pages lines 50, for example. And to find data — sorting by various columns + operation filtering + Hide button.
by
0 like 0 dislike
Try to hide a table (optional via display:none, it is better using visibility:hidden), then hide all rows, then show table.
I advise you to check: webo.in/articles/all/2009/31-rending-restyle-reflow-relayout/
by
0 like 0 dislike
The server is also not outsource, static grid 5K will be loaded very long, I suggest you try not to use table principle, and go to ul li, browsers work with lists much faster, even IE7, he really tried on thousands of records, grid on js was filled for a very long time, not to mention that all IE Windows are hung. But with lists it's much more fun look! plus, advice from and I think it will be faster... the string inside the li element do inline elcmentary, such as they span faster div
by
0 like 0 dislike
Create 5 tables for 1K and hide themselves in the table.
by
0 like 0 dislike
there is a plugin for jquery www.trirand.com/blog/jqgrid/jqgrid.html (Advanced -> Search Big Sets) just to work with large tables
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
asked Mar 28, 2019 by JekFdrv
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,033 users