Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Strange HTML nested table problem

Strange HTML nested table problem

Scheduled Pinned Locked Moved Web Development
htmlhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant Mane
    wrote on last edited by
    #1

    Hi, I have one problem with nested tables. following is spinpet for html Untitle Root   pqr 0 4 1 BBB   xxx 1 2 2 AAA   xyz 0 0

    P 1 Reply Last reply
    0
    • H Hemant Mane

      Hi, I have one problem with nested tables. following is spinpet for html Untitle Root   pqr 0 4 1 BBB   xxx 1 2 2 AAA   xyz 0 0

      P Offline
      P Offline
      Paeth Claudius Raphael
      wrote on last edited by
      #2

      Well, due to the fact that i'm not fascinated on tables like others are, i can only give you some simple hints. But before that, i want to ask, why are you still using nested tables? It isn't even a rumour anymore, that it produces more problems and a massive code-overhead and eats RAM-Ressources 'til the earth stands still. Okay, whatever; Should be your problem, but if there's a reason why, please note it. 1) Even in html 4 it is not allowed to use style-attributes in every table-element when using nested tables, because without a class-definition in a cascading style sheet the doubled definitions are differently interpreted. That is, because tables are organized as a list inside the interpreter, so the normal 'The same tag inside (with a style definition) overrides the parent tag, is not given. 2) The 'td'-tags/-Elements that are emepty are written like ''. That space in between the opening tag should be deleted. Why? Because there are many browsers especially Mozilla-based and the older Netscapes that produce blank childs/doubled text-nodes inside the Element-Hierarchy while parsing the site on load. The result is unpredictable, because even the same browser-installation (same version, setup-type, etc.) is making it's behaviour dependent on the machines power (RAM, CPU-TYPE,etc.) and especially, the core-services provided by the operating system. So just clean up that table-tree of those spaces. Anytime, you are building a site. There should be no element that hasn't attributes in it having spaces! 3) Due to the talk, any helper might give advice based on looking up the code-result in front-page... I'm not one of those 'pro-anything-else-than-microsoft'-users, but to be true, though' i'm loving microsoft-products i never used frontpage. But what i can tell you, is that the Internet Explorer (any Version) got a problem with '100%' of width in the style-attribute of a table. This is because the styles that are pre-defined for tables use borders, column-spacing and margin-settings, that make it impossible to run a table at '100%' width without defining a stylesheet that cleans up those pre-definitions. In some tasks it could help to set the body-Element and all-Elements to zero padding and margin. So the resulting code should look like: (somewhere inside the ... <!-- body{ margin:0px; padding:0px; width:100%; overflow:auto; } *{ margin:0px; padding:0px; } //--> This is the absolute minimum set of style definitions you might ha

      H 1 Reply Last reply
      0
      • P Paeth Claudius Raphael

        Well, due to the fact that i'm not fascinated on tables like others are, i can only give you some simple hints. But before that, i want to ask, why are you still using nested tables? It isn't even a rumour anymore, that it produces more problems and a massive code-overhead and eats RAM-Ressources 'til the earth stands still. Okay, whatever; Should be your problem, but if there's a reason why, please note it. 1) Even in html 4 it is not allowed to use style-attributes in every table-element when using nested tables, because without a class-definition in a cascading style sheet the doubled definitions are differently interpreted. That is, because tables are organized as a list inside the interpreter, so the normal 'The same tag inside (with a style definition) overrides the parent tag, is not given. 2) The 'td'-tags/-Elements that are emepty are written like ''. That space in between the opening tag should be deleted. Why? Because there are many browsers especially Mozilla-based and the older Netscapes that produce blank childs/doubled text-nodes inside the Element-Hierarchy while parsing the site on load. The result is unpredictable, because even the same browser-installation (same version, setup-type, etc.) is making it's behaviour dependent on the machines power (RAM, CPU-TYPE,etc.) and especially, the core-services provided by the operating system. So just clean up that table-tree of those spaces. Anytime, you are building a site. There should be no element that hasn't attributes in it having spaces! 3) Due to the talk, any helper might give advice based on looking up the code-result in front-page... I'm not one of those 'pro-anything-else-than-microsoft'-users, but to be true, though' i'm loving microsoft-products i never used frontpage. But what i can tell you, is that the Internet Explorer (any Version) got a problem with '100%' of width in the style-attribute of a table. This is because the styles that are pre-defined for tables use borders, column-spacing and margin-settings, that make it impossible to run a table at '100%' width without defining a stylesheet that cleans up those pre-definitions. In some tasks it could help to set the body-Element and all-Elements to zero padding and margin. So the resulting code should look like: (somewhere inside the ... <!-- body{ margin:0px; padding:0px; width:100%; overflow:auto; } *{ margin:0px; padding:0px; } //--> This is the absolute minimum set of style definitions you might ha

        H Offline
        H Offline
        Hemant Mane
        wrote on last edited by
        #3

        Hi, Thanks for your reply. I am using Nested DataGrid in one of my page. and the output of that datagrid is nested tables when it renders the nested datagrid. I removed all the style from the table but still it is not showing me the 14th level. I noticed one more thing that if I remove top table i.e. root table then it shows me the 14th level. That means it just shows me 12 levels only. So, is their any limit for nested tables. I google this problem but i found that their is no limit for nesting the tables. Then why it shows only 12 nested table. I have given an example of frontpage for all to see the design view as well as preivew. In design view it's showing me all the levels but when I preview that page it shows levels till 13. I also see that output in browser (Internet Explorer). When that perticular page is displayed to the user, user can see only 12 levels but in view source of that page their are more levels. Is this is a limit of table or any drawback of html when it displays the output in browser? Please suggest.

        P 1 Reply Last reply
        0
        • H Hemant Mane

          Hi, Thanks for your reply. I am using Nested DataGrid in one of my page. and the output of that datagrid is nested tables when it renders the nested datagrid. I removed all the style from the table but still it is not showing me the 14th level. I noticed one more thing that if I remove top table i.e. root table then it shows me the 14th level. That means it just shows me 12 levels only. So, is their any limit for nested tables. I google this problem but i found that their is no limit for nesting the tables. Then why it shows only 12 nested table. I have given an example of frontpage for all to see the design view as well as preivew. In design view it's showing me all the levels but when I preview that page it shows levels till 13. I also see that output in browser (Internet Explorer). When that perticular page is displayed to the user, user can see only 12 levels but in view source of that page their are more levels. Is this is a limit of table or any drawback of html when it displays the output in browser? Please suggest.

          P Offline
          P Offline
          Paeth Claudius Raphael
          wrote on last edited by
          #4

          What should be the final view/look of that piece of structure? Means: In which way you want to use it? Which browser(s) and version(s) do you use (exactly) to look the results up? Do you have the page online? Is there a reason that binds you to realize the structure with nested-tables?

          H 1 Reply Last reply
          0
          • P Paeth Claudius Raphael

            What should be the final view/look of that piece of structure? Means: In which way you want to use it? Which browser(s) and version(s) do you use (exactly) to look the results up? Do you have the page online? Is there a reason that binds you to realize the structure with nested-tables?

            H Offline
            H Offline
            Hemant Mane
            wrote on last edited by
            #5

            That page is not online now. I am Using Internet Explorer 6.0 with service pack 1. The sturcture is something like tree view. User can drill down to the Parent To Child. User can expand and collapse the records so I need to use the nested datagrid which finally render the nested table. The posted code is part of html output of that page. You can view that output if you want me to mail that html to you then i'll mail to you.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups