xsl-list
[Top] [All Lists]

RE: RE: [html] I am trying to adjust/syncronize cell width in two parallel tables (and it does not seem to be working) !!!

2005-05-25 11:00:49
 

-----Original Message-----
From: Bovy, Stephen J 
Sent: Tuesday, May 24, 2005 8:17 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] RE: [html] I am trying to adjust/syncronize cell width in
two parallel tables

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                                     

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • RE: RE: [html] I am trying to adjust/syncronize cell width in two parallel tables (and it does not seem to be working) !!!, Bovy, Stephen J <=