473,782 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

maximum rows added to table

Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)

Thanks.
Jun 27 '08 #1
12 7821
enrique wrote on 02 mei 2008 in comp.lang.javas cript:
Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)
The language has no limit, The DOM, as implemented in different browsers,
might have, but the DOM is not part of Javascript. So the answer in general
is unanswerable, for a specific browser, there might be a limit.

I suppose the limit depends on the maximum memory set available for that
purpose.

==============

Using a html table of 74,000 rows in a browser is nonsensical in itself.

That is not where browser were made for. Other technologies are much more
appropriate for displaying such number, be it that the visual use and the
scrollability is null.

Perhaps you plan to make a 3000 page book using a browser?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #2
enrique wrote:
Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)
I don't know of any specified limit. However, there is a practical limit of
course, both regarding memory size and usability. If you don't recognize by
yourself that a table with more than, say, 2000 rows is unusable, you are
really beyond help.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #3
On May 2, 2:49 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
>If you don't recognize by
yourself that a table with more than, say, 2000 rows is unusable, you are
really beyond help.
Guys, PLEASE let's keep the discussion friendly.

I didn't intend to debate why I would want to display 74,000 rows in a
single table. It's not important for the purposes of this question.
I'm asking if there is a known limitation with the DOM's ability to
dynamically add rows to an HTML table (as if I needed to restate the
question.)

If you care to discuss the aesthetics about web page readability and
usability, feel free to start a new thread in the appropriate
discussion group.

Thank you.
Jun 27 '08 #4
enrique wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
>If you don't recognize by yourself that a table with more than, say,
2000 rows is unusable, you are really beyond help.

Guys, PLEASE let's keep the discussion friendly.
This *was* a friendly reminder that what you are doing is considered
nonsense actually, and so your question as it is really does not matter even
if somebody knew the answer (it cannot be known for sure, as not all DOMs
are open source). As I have pointed out, chances are that you are merely
running into a memory limit which may differ between user agents, operating
systems, and platforms.
I didn't intend to debate why I would want to display 74,000 rows in a
single table. It's not important for the purposes of this question. I'm
asking if there is a known limitation with the DOM's ability to
dynamically add rows to an HTML table (as if I needed to restate the
question.)
As indicated by your trimming the quotation too much, you missed the point.
If you care to discuss the aesthetics about web page readability and
usability, feel free to start a new thread in the appropriate discussion
group.
This is Usenet, not your private support forum. You are not to dictate
what is discussed and how it is discussed in a thread that you started.
Like it or leave it.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #5
In comp.lang.javas cript message <48************ **@PointedEars. de>, Sat,
3 May 2008 23:07:41, Thomas 'PointedEars' Lahn <Po*********@we b.de>
posted:
>
This *was* a friendly reminder
If you expect your approach to communication to be seen as friendly be
normal readers, then you are both naive and a slow learner.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Jun 27 '08 #6
Thomas 'PointedEars' Lahn a écrit :
enrique wrote:
>[...] Thomas 'PointedEars' Lahn [...] wrote:
>>If you don't recognize by yourself that a table with more than, say,
2000 rows is unusable, you are really beyond help.
Guys, PLEASE let's keep the discussion friendly.

This *was* a friendly reminder
Of course it was *NOT*

--
laurent
Jun 27 '08 #7
On May 2, 7:37*pm, enrique <enrique.pin... @gmail.comwrote :
Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. *I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)

Thanks.
Safari on a Mac : more than 200k rows : it rocks.
FF2 on a Mac : sluggish @ ~70k rows.
Opera on a Mac : sluggish ~from the start.
Safari windows : ok up to 100k rows then stops responding.
IE8b Windozes : sluggish @ ~6k rows : it sucks.
FF2 Windows : sluggish @ ~70k rows.

click into the window to stop / continue adding rows :

HTH,
--Jorge.

<html>
<head>
<meta name="author" content="jorge" >
<!-- Date: 2008-05-05 -->

<!--567890123456789 012345678901234 567890123456789 012345678901234 567890
-->
<script>
window.go = true;
window.onclick = function () { window.go = !window.go; };
window.onload = function () {
var table = document.create Element("table" );
document.body.a ppendChild(tabl e);
table.next=1;
(function () {
var row, cell, i, me = arguments.calle e;
if (window.go) {
for (i=0; i<100; i++) {
cell = document.create Element("td");
(cell).innerHTM L = "row # "+ (table.next++);
(row = document.create Element("tr")). appendChild(cel l);
table.insertBef ore(row, table.firstChil d);
}
}
setTimeout(me, 5);
})();
};
</script>

</head>
<body>
</body>
</html>
Jun 27 '08 #8
On May 5, 8:41 am, Jorge <jo...@jorgecha morro.comwrote:
On May 2, 7:37 pm, enrique <enrique.pin... @gmail.comwrote :
Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.
If you happen to know if there is a number to this I should be aware
of, please respond :)
Thanks.

Safari on a Mac : more than 200k rows : it rocks.
FF2 on a Mac : sluggish @ ~70k rows.
Opera on a Mac : sluggish ~from the start.
Safari windows : ok up to 100k rows then stops responding.
IE8b Windozes : sluggish @ ~6k rows : it sucks.
FF2 Windows : sluggish @ ~70k rows.

click into the window to stop / continue adding rows :

HTH,
--Jorge.

<html>
<head>
<meta name="author" content="jorge" >
<!-- Date: 2008-05-05 -->

<!--567890123456789 012345678901234 567890123456789 012345678901234 567890
-->
<script>
window.go = true;
window.onclick = function () { window.go = !window.go; };
window.onload = function () {
var table = document.create Element("table" );
document.body.a ppendChild(tabl e);
table.next=1;
(function () {
var row, cell, i, me = arguments.calle e;
if (window.go) {
for (i=0; i<100; i++) {
cell = document.create Element("td");
(cell).innerHTM L = "row # "+ (table.next++);
(row = document.create Element("tr")). appendChild(cel l);
table.insertBef ore(row, table.firstChil d);
}
}
setTimeout(me, 5);
})();
};
</script>

</head>
<body>
</body>
</html>
Very interesting results! Thanks for sharing.
Jun 27 '08 #9
Jorge wrote:
On May 2, 7:37 pm, enrique <enrique.pin... @gmail.comwrote :
>Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn't notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)
[...]

Safari on a Mac : more than 200k rows : it rocks.
FF2 on a Mac : sluggish @ ~70k rows.
Opera on a Mac : sluggish ~from the start.
Safari windows : ok up to 100k rows then stops responding.
IE8b Windozes : sluggish @ ~6k rows : it sucks.
FF2 Windows : sluggish @ ~70k rows.
Unsurprisingly, your results could not be less representative, for what you
observed heavily depends on the hardware and software used, platform and
operating system very much aside. Hence my first reply.
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3011
by: David.Tymon | last post by:
>Description: MySQL v4.1.0-alpha only allows a client to prepare a maximum of 254 statements. On the 255th mysql_prepare() call, a failure is returned with no information returned by mysql_error(). This occurs even if the statements are closed after each use. >How-To-Repeat: The following program highlights the problem. Just change the connection details to some database. It also assumes there is a table called dummy,
18
6364
by: Jeff Boes | last post by:
I'm sure this is a concept that's been explored here. I have a table (fairly simple, just two columns, one of which is a 32-digit checksum) with several million rows (currently, about 7 million). About a million times a day we do select * from my_table where md5 = ? to verify presence or absence of the row, and base further processing on that information.
2
28600
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
3
4885
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that the best method? Do you have a sample of how to do this?
12
2007
by: Graham Blandford | last post by:
Hi all, Would someone be able to tell me the most 'graceful' way of removing unwanted rows from a dataset based on a condition prior to update? OR, resetting the rows all to unchanged after they are initally added to the recordset. I create a dataset, which begins empty after the initial .Fill. Then I create several rows with some default information, leaving one
3
2610
by: shsandeep | last post by:
What is the query to obtain a list of all the tables having the maximum number of rows in descending order? Cheers, Sandeep.
1
1580
by: serge | last post by:
IF (SELECT OBJECT_ID('t1')) IS NOT NULL DROP TABLE t1 GO CREATE TABLE t1 (c1 INT, c2 INT) DECLARE @n INT SET @n = 1 WHILE @n <= 454 BEGIN INSERT INTO t1 VALUES (@n, @n)
6
10705
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value = m_vScrollBar.Maximum; The scroll bar is set to start from the bottom.
1
1973
by: sonner | last post by:
hello I;m using this function to add rows to a table but there should be a maximum off 8 rows that could be added. Does anyone now how to implement this in the function ? thanks for your help function addRowToTable() { var tbl = document.getElementById('tblSample');
0
9639
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10308
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10143
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.