469,929 Members | 1,831 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

limit to display=25?

Yesterday, I posted a question which ended up giving me a lot of info, but
the core question never got answered/solved. The short version is that when
a page displays a number of records based on some criteria that the user
selects, the last record shows up in the source code, but not in the
display. Specifically, I can see 25 records (actually nested tables built
with some loop code) More playing around showed me that adding one more
record to the criteria meant that the last 4 did not display (in other
words, there were 29 records all together, but only 25 showed).

Here's what's weird: I saved the file to my desktop (thus losing the ASP
code and allowing me to concentrate on the HTML), and then I removed a row,
one of the ones that did display. Lo and behold, the 26th record (which
didn't show up before) also displayed. So I did a control-Z, which added
that one back in which I removed, then removed a different one. Sure enough,
the that same one showed up. Finally, I kept that one out, then removed
another record randomly from the middle of the page, and the 27th one also
showed up.

What this says to me is that there is some sort of limit to what IE will
display (This being an Intranet, we're all on IE 6) I have further verified
this hypothesis by adding and removing various records. Doesn't seem to
matter which one.

Is there a limit? Can't see any other reason this could happen.
Jul 19 '05 #1
6 2285
> What this says to me is that there is some sort of limit to what IE will
display (This being an Intranet, we're all on IE 6) I have further verified this hypothesis by adding and removing various records. Doesn't seem to
matter which one.

Is there a limit? Can't see any other reason this could happen.


Can you show this magic HTML file?
Jul 19 '05 #2
From yesterday's post (which I think you have the ASP code for), I have
this:

http://www.middletree.net/debug/Disp...leTickets.html
Only difference is, it has 28 records, and only shows 25. I could be
slightly off about the number, but the main thing is that you can see the
statement at the top which says that there are 28 records, (a statement
which was generated by the ASP rowcount property), and more important, you
can see in the code when you do a view source that there is at least one
record that is in the source code, but not displaying. Well, not displaying
on the workstations we have here at work. Again this being Intranet, this is
the best I can do to show you what I am seeing.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:OG*************@TK2MSFTNGP10.phx.gbl...
What this says to me is that there is some sort of limit to what IE will
display (This being an Intranet, we're all on IE 6) I have further

verified
this hypothesis by adding and removing various records. Doesn't seem to
matter which one.

Is there a limit? Can't see any other reason this could happen.


Can you show this magic HTML file?

Jul 19 '05 #3
Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs 33).

(I verified my hunch by replacing <table with <table border=1, and you can
see that the table width decreases as you go down the page, which indicates
severely nested tables.)

I guess IE will only put up with so much invalid HTML. :(

So, make sure that for every table you open within your loop, that you close
it. This should prevent the browser from succumbing to sloppy HTML.
Jul 19 '05 #4
Of course, I have been going down the same path in trying to solve this.
However, I was looking at the ASP files, not the outputted code, which I
obviously should have. In the ASP, I have a total of 4 <table and 4 </table
tags.

I probably have the opening tags in the loop, and the closing ones outside.

Point is, I think I understand the basic cause of the issue, just am having
trouble nailing down the exact place in the code.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs 33).

(I verified my hunch by replacing <table with <table border=1, and you can
see that the table width decreases as you go down the page, which indicates severely nested tables.)

I guess IE will only put up with so much invalid HTML. :(

So, make sure that for every table you open within your loop, that you close it. This should prevent the browser from succumbing to sloppy HTML.

Jul 19 '05 #5
Yep, that was it! I moved an opening <table><tr><td> combo to just before
the loop, and the count is 28 of each opening and closing (on the test page
I just pulled up). Thanks
"middletree" <mi********@htomail.com> wrote in message
news:ON**************@TK2MSFTNGP11.phx.gbl...
Of course, I have been going down the same path in trying to solve this.
However, I was looking at the ASP files, not the outputted code, which I
obviously should have. In the ASP, I have a total of 4 <table and 4 </table tags.

I probably have the opening tags in the loop, and the closing ones outside.
Point is, I think I understand the basic cause of the issue, just am having trouble nailing down the exact place in the code.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs 33).
(I verified my hunch by replacing <table with <table border=1, and you can see that the table width decreases as you go down the page, which

indicates
severely nested tables.)

I guess IE will only put up with so much invalid HTML. :(

So, make sure that for every table you open within your loop, that you

close
it. This should prevent the browser from succumbing to sloppy HTML.


Jul 19 '05 #6
In news:ON**************@TK2MSFTNGP11.phx.gbl,
middletree <mi********@htomail.com> typed:
: Of course, I have been going down the same path in trying to solve
: this. However, I was looking at the ASP files, not the outputted
: code, which I obviously should have. In the ASP, I have a total of 4
: <table and 4 </table tags.
:
: I probably have the opening tags in the loop, and the closing ones
: outside.
:
: Point is, I think I understand the basic cause of the issue, just am
: having trouble nailing down the exact place in the code.
:

http://validator.w3.org/

Easy way to find missing starting and ending tags, if nothing else.

Don


:
: "Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
: news:uT**************@TK2MSFTNGP09.phx.gbl...
:: Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs
:: 33).
Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by http://links.i6networks.com | last post: by
1 post views Thread by cspano | last post: by
5 posts views Thread by - | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.