codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Resizing Table Columns  jmirickhai at 18:13 on Wednesday, October 13, 2004
 

I would like to be able to dynamicly resize a table's columns by dragging the border. Is this posible? If so could you please suggest how I should try to go about this... I dont need a solution but I need to know where to start.

  Re: Resizing Table Columns  Troy Wolf at 19:14 on Wednesday, October 13, 2004
 

Obviously this is not standard functionality to expect in a browser, so you are looking at some relatively advanced DHTML scripting. Take a look at this page
http://www.deadbeef.com/dhtml/split.htm

Also, a thread here discussing this concept.
http://www.short-media.com/forum/archive/index.php/t-11568.html

Getting a solution that works perfectly in all browsers or at least the current versions of both IE and Mozilla/Netscape will be difficult. You may not need to worry about both browsers for your application -- if you are lucky!
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Resizing Table Columns  sawtode at 03:15 on Monday, August 21, 2006
 

Troy,
Thanks for the deadbeef link - it is nice and simple. Would you have any suggestions on how to include a background image as well that resizes with the page size? What I want to do is to put links across a web page using an invisible table to force the links to float in the correct locations. The aspect of the background image is not important, but the relative position of the table cells is important. I have found some code examples for resizing a background image that work but when I combine with the table resizing code, it all breaks because I don't know enough to put them together correctly. Here is what I have for resizing the background image. How do I add the resizing table and get it all to work? *THANKS!* Note that I removed the quotes from the code text below for posting.

<html>
<body style=margin: 0px; padding: 0px;>
<div style=width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: 0;>
<img src=mybackgroundpicture.jpg style=width: 100%; height: 100%;>
</div>
<div style=z-index: 1; position: absolute;>
</div>
</body>
</html>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Question in ASP?
•  Desperately need help
•  MDI form open size and location
•  Connection To Database
•  Re: Question in C++
•  Re: Resizing Table Columns
•  Newbie - Form
•  problem in servlet
•  Re: installing DB_File on Perl Package Manager(PPM)


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006