By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

Q about loading large table that is centered

P: n/a
I have a table that is about 100 rows long and within that table I have tons
of links. The table takes about 2 seconds to load. I think javascript might
help somehow.

The problem is that in FireFox and Netscape, as this document is written the
page is being formated while this table is loading, and because the table is
centered horizontally and I have some right-aligned divs above that, the
table will appear to the right side of the screen for a second while it is
loading, and then it moves back to the center after the rest of the page has
loaded (until the document gets to the point where those right-aligned divs
close). I'll try to explain better...

<html>
<some divs around here that are right aligned>
<div align="center"
<table>
LOTS OF STUFF HERE
</table>
</div>
</html>

The problem is that FireFox and Netscape will do this:

<html>
<some divs around here that are right aligned>
<div align="center"
<table>
LOTS!!! OF STUFF HERE

FireFox and Netscape will SHOW the page right now, while it is loading
(IE does not).. and because there are some unclosed right aligned divs, the
table jumps from right to left as it loads.

And finally, after a couple more seconds:

</table>
<close all the right aligned divs>
</html>

And now the table jumps back to the center where it belongs.
I wish I could change the format of the page, but it is huge, and its not my
code.

I'm thinking that I can write this table to a hidden string on the server
side ASP, and use document.write after the page has loaded to write the
table. Does this sound appropriate?
Dec 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
never mind.. of course I'm having to rebuild the whole dang thing using divs
instead of tables.

"Richard" <no******@spam.invalid> wrote in message
news:SQRof.43$_L5.2@fed1read06...
I have a table that is about 100 rows long and within that table I have tons of links. The table takes about 2 seconds to load. I think javascript might help somehow.

The problem is that in FireFox and Netscape, as this document is written the page is being formated while this table is loading, and because the table is centered horizontally and I have some right-aligned divs above that, the
table will appear to the right side of the screen for a second while it is
loading, and then it moves back to the center after the rest of the page has loaded (until the document gets to the point where those right-aligned divs close). I'll try to explain better...

<html>
<some divs around here that are right aligned>
<div align="center"
<table>
LOTS OF STUFF HERE
</table>
</div>
</html>

The problem is that FireFox and Netscape will do this:

<html>
<some divs around here that are right aligned>
<div align="center"
<table>
LOTS!!! OF STUFF HERE

FireFox and Netscape will SHOW the page right now, while it is loading
(IE does not).. and because there are some unclosed right aligned divs, the table jumps from right to left as it loads.

And finally, after a couple more seconds:

</table>
<close all the right aligned divs>
</html>

And now the table jumps back to the center where it belongs.
I wish I could change the format of the page, but it is huge, and its not my code.

I'm thinking that I can write this table to a hidden string on the server
side ASP, and use document.write after the page has loaded to write the
table. Does this sound appropriate?

Dec 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.