jquery - Dynamically generate html table using javascript -
i have 100,000 records in java-script array following column name "empno,fname,lname,date." want display records in html table each field in text box.
currently create table , append values in loop
<td><input maxlength="8" id="empno' + + '" type="text" /></td> it takes above 5 mints display on 24,000 records generate table
what best way generate html table in java-script.?
the problem here shouldn't trying display 100,000 elements on single webpage. method doing valid javascript not designed language handles io intensive tasks manipulating , displaying thousands of elements of array @ time. suggest implementing form of paging able handle information better. try looping through, first 500 elements , displaying them , add next page/prev page buttons generate table next 500 elements. can use jquery's $.clear() empty table before filling again.
Comments
Post a Comment