in reply to Dynamic HTML Tables on the Client Side (OT)
First off, this is quite stupid. Re-sizing stuff in HTML is a "Bad Plan"(tm). For one thing, HTML renderers are not required to display things uniformly. This isn't a windowing system. In fact, if you think of HTML as a hint, not a demand, you'll be a lot closer to reality. (Some are demands, but most are hints.)
That said, this is actually quite easy, once you get the UI designed.
[ ] [ ] [ ] ... [ ] chk [ ] chk [ ] chk . . . . . . chk chk chk ... [Add Row] [Update] [Submit]
The [ ] are textboxes to control size. The chk boxes are to indicate deletion of the column/row. Add Row (and possibly Add Col) are self-explanatory. The big confusion point is the Update vs. Submit buttons. Update refreshes the screen with any new chnges. Submit actually sends the table in.
Make sure that you hammer into your client's head that HTML will NOT provide the same kind of interface that Windows (or X or whatever) provides for them. This is especially true in terms of exact layout. Try this sometime - create a textbox that's 80 characters wide, then view it in IE 5, IE 5.5, NS 4.72, NS 6, and NS 7. See how many characters actually fit in the view you're given. If you're masochistic, do the above test in 800x600, 1024x768, and 1280x1024 resolution. Maybe vary your color depth and your graphics card as well. Maybe, you could even vary your system font to add another dimension. You'll see what I'm talking about.
The actual implementation is, as always, left as an exercise for the reader.
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|