473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to display dynamically growing table?

110 100+
hi all,

I have a content which is fetched from a JSON response. I am putting that in a dynamic table and showing the data. The problem with this approach is, I am adding row by row and finally appending that to a table, so if result set is large then browser struggles a lot to display and takes some time to display whole result in one shot. Instead of this if we can display the table as a growing table with rows displayed as and when rows become available.

Expand|Select|Wrap|Line Numbers
  1. http = new yXMLHttpRequest();
  2. http.onreadystatechange = function()
  3. {
  4.      if(http.readyState == 4 && http.status == 20)
  5.      {
  6.           // Table populated here
  7.      }
  8. } // Table is not displayed until control comes out of here..
  9.  
  10. .
  11. .
  12. .
  13. http.send()
  14.  
I am using IE 6 and asynchronous request.
any ideas? Please help

waiting for your reply,
Xoinki
May 27 '08 #1
4 1893
hsriat
1,654 Expert 1GB
Use insertRow and insertCell instead of appendChild.
May 27 '08 #2
xoinki
110 100+
hi,
Thanks for your quick reply, ok i will check this out.

Xoinki
May 27 '08 #3
xoinki
110 100+
hi,
I tried with the above approach.. it is simple but i still have the same problem..once data is given to browser browser goes into a not_responding state..
My question is
1) When will the browser actually display the data? As soon as we do appendChild?

waiting 4 u r rep,
Xoinki
May 30 '08 #4
hsriat
1,654 Expert 1GB
Can you please show me the part of the code where you're creating your dynamic table?

And browser will of course show data as soon as you do append child. But if data is too much(too many rows), then there's a response time. That's why I told you to use insertRow so that each row can be displayed as soon as its inserted instead of waiting for the whole table to get filled first.
May 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Christopher Benson-Manica | last post by:
I'm trying to dynamically change the visibility of a table row. I can hide the row, but I'm having trouble making it visible again. This is what I have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML...
7
by: Fabian Wauthier | last post by:
Hi list, I am trying to dynamically grow a 2 dimensional array (Atom ***Screen) of pointers to a struct Atom (i.e. the head of a linked list). I am not sure if this is the right way to do it: ...
9
by: Suman | last post by:
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
7
by: Janis | last post by:
I try to understand what could be the source of a problem with displaying and hiding rows of tables using display:block/none. I've read selfhtml but could not find any hint about that. Any...
4
by: mankolele | last post by:
Hi all I am working on a new project where it has to have a dynanically growing table I guess I am going to have to use loops or two array function . Every time a project is added it must appear in...
64
by: Philip Potter | last post by:
Hello clc, I have a buffer in a program which I write to. The buffer has write-only, unsigned-char-at-a-time access, and the amount of space required isn't known a priori. Therefore I want the...
6
by: Burkhard Schultheis | last post by:
I've installed a fresh DB2 V9.1 server (Express-C). Now I see, that the number of applications (db2 list applications) is growing all the times when a script is run which makes some database...
0
by: pereges | last post by:
On Jun 27, 11:42 pm, j...@smof.fiawol.org (J. Cochran) wrote: ok i will post some code and explanation.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.