[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [html] I am trying to adjust/syncronize cell width

Subject: RE: [html] I am trying to adjust/syncronize cell width in two parallel tables
From: "Bovy, Stephen J" <STEPHEN.Bovy@xxxxxx>
Date: Tue, 24 May 2005 23:17:23 -0400
html adjust table width
I know this is off topic (please forgive)

// loop logic to adjust and syncronize header table and
// data table

var ind;
var id1;
var id2;
var obj1;
var obj2;

var frm1 = document.getElementById("xhead1");
var frm2 = document.getElementById("xbody");

for ( ind=1; ind <= rcnt; ind ++ ) {

  id1 = "tbh" + ind;
  id2 = "tbr" + ind;

  obj1 = getfdobj ( frm1, id1, nFlag );
  obj2 = getfdobj ( frm2, id2, nFlag );

  if ( obj1.offsetWidth < obj2.offsetWidth ) {
    obj1.width = obj2.offsetWidth;
  } else if ( obj2.offsetWidth > obj1.offsetWidth ) {
    obj2.width = obj1.offsetWidth;
  }

} // end adjustment loop

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.