2
I have a VB application that builds HTML pages powered by database data. So I can issue reports by inserting the data into an HTML table.
It happens, that sometimes the table becomes too big to be printed and need to remove some columns so that the table structure fits right on paper. You would then need to hide or remove columns when the table exceeds a certain width. But this action should occur in the onload event, because my table is written by a VB program and then the code in JS only goes into action when the page is opened by the user.
As you would then, to remove the columns so that my table always has the width of 2400px for example.
?!?! could help me?
Dude, I don’t know how to give a very direct answer, but I can give you an excellent and very responsive tool to set responsive layouts for your websites. Take a look at Bootstrap http://getbootstrap.com/ . I don’t know if you know it is simply a css, fully responsive, and it has plenty of table layout already ready. Interactive tables, etc. See: http://getbootstrap.com/css/#Tables . Maybe this can help you with a lot of things.
– Matheus Bessa
Man, thanks for the tip, I really liked this alternative. However, it still doesn’t solve my question. In the case of this project, the responsive layout has no relevance, but the size of the component itself. But anyway, your tip was cool and I saw a lot of useful stuff there that I even intend to use. Thank you! For now, I just need to know how to remove columns from a table using JS.
– Cleiton Ribeiro