limit to display=25?

M

middletree

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.
 
A

Aaron Bertrand - MVP

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?
 
M

middletree

From yesterday's post (which I think you have the ASP code for), I have
this:

http://www.middletree.net/debug/DisplaySortableTickets.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.
 
A

Aaron Bertrand - MVP

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.
 
M

middletree

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.
 
M

middletree

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
 
D

Don Verhagen

In middletree <[email protected]> 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




:
: :: Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs
:: 33).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,138
Messages
2,570,798
Members
47,347
Latest member
RebekahStu

Latest Threads

Top