limit to display=25?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • middletree

    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.


  • Aaron Bertrand - MVP

    #2
    Re: limit to display=25?

    > What this says to me is that there is some sort of limit to what IE will[color=blue]
    > display (This being an Intranet, we're all on IE 6) I have further[/color]
    verified[color=blue]
    > 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.[/color]

    Can you show this magic HTML file?


    Comment

    • middletree

      #3
      Re: limit to display=25?

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




      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" <aaron@TRASHasp faq.com> wrote in message
      news:OG80MkZnDH A.688@TK2MSFTNG P10.phx.gbl...[color=blue][color=green]
      > > 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[/color]
      > verified[color=green]
      > > 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.[/color]
      >
      > Can you show this magic HTML file?
      >
      >[/color]


      Comment

      • Aaron Bertrand - MVP

        #4
        Re: limit to display=25?

        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.


        Comment

        • middletree

          #5
          Re: limit to display=25?

          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" <aaron@TRASHasp faq.com> wrote in message
          news:uTj8gvZnDH A.1676@TK2MSFTN GP09.phx.gbl...[color=blue]
          > 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[/color]
          indicates[color=blue]
          > 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[/color]
          close[color=blue]
          > it. This should prevent the browser from succumbing to sloppy HTML.
          >
          >[/color]


          Comment

          • middletree

            #6
            Re: limit to display=25?

            Yep, that was it! I moved an opening <table><tr><t d> 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 " <middletree@hto mail.com> wrote in message
            news:ONEfYzZnDH A.2732@TK2MSFTN GP11.phx.gbl...[color=blue]
            > 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[/color]
            </table[color=blue]
            > tags.
            >
            > I probably have the opening tags in the loop, and the closing ones[/color]
            outside.[color=blue]
            >
            > Point is, I think I understand the basic cause of the issue, just am[/color]
            having[color=blue]
            > trouble nailing down the exact place in the code.
            >
            >
            > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
            > news:uTj8gvZnDH A.1676@TK2MSFTN GP09.phx.gbl...[color=green]
            > > Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs[/color][/color]
            33).[color=blue][color=green]
            > >
            > > (I verified my hunch by replacing <table with <table border=1, and you[/color][/color]
            can[color=blue][color=green]
            > > see that the table width decreases as you go down the page, which[/color]
            > indicates[color=green]
            > > 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[/color]
            > close[color=green]
            > > it. This should prevent the browser from succumbing to sloppy HTML.
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Don Verhagen

              #7
              Re: limit to display=25?

              In news:ONEfYzZnDH A.2732@TK2MSFTN GP11.phx.gbl,
              middletree <middletree@hto mail.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.
              :

              W3C's easy-to-use markup validation service, based on SGML and XML parsers.


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

              Don




              :
              : "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
              : news:uTj8gvZnDH A.1676@TK2MSFTN GP09.phx.gbl...
              :: Sloppy HTML. Count the instances of <table vs </table> (hint: 59 vs
              :: 33).


              Comment

              Working...