I have a web service that returns data, a fairly large set, maybe 600 rows, on 20 columns. What is the fastest most efficient way to load this data into an html table in jQuery code?
I tried to create an html table by going through the returned data and creating a DOM table inside the row, but part of the loop is very slow. I heard about jQuery Templates, but I'm not sure if this technology is fast enough for large datasets ....
thank
- , HTML? JSON . HTML-, element.html(data) .
element.html(data)
: JSON HTML, : 1, 2, 3, 4, 5
, . 600 x 20 . , ( ), .
webservice . Ajax.
, , , - ( ), .
:
http://www.infinite-scroll.com/
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-an-infinite-scroll-web-gallery/
I think that here JSON DB might be the best ... you can write a server page that responds with json db formatted data for multiple lines. Then make your own ajax code to load the rows and process them in your choice of display model, for example your own <table>using "overflow:auto;", and add the rows to this table in pieces .. or use something like the "Infinite Scroll" is already offered.
<table>
"overflow:auto;"
Source: https://habr.com/ru/post/1783331/More articles:Проверка времени сравнения с печатью MySQL DATETIME - phpПропустить ошибки в Django с помощью HttpResponseRedirect - pythonMKReverseGeocoder; Can I find a place in English only? - mkreversegeocoderHow do I debug my program when it freezes? - debuggingpython hashlib import _sha - pythonHow to make Singleton a lazy instance of a class? - c #Is there a difference in the order of equality? - c #How can I get chrome to stop caching while working on an aspx file in visual studio - cssC ++: code cleaning - c ++How to programmatically configure an NSView layer - cocoaAll Articles