Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20274

Re: Prob with IE8 and getElementsByName()

From "Mel Smith" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: Prob with IE8 and getElementsByName()
Date 2013-06-13 14:12 -0600
Message-ID <b1une9FfbioU1@mid.individual.net> (permalink)
References <b1pkhiFc1amU1@mid.individual.net><51b86558$0$6630$9b4e6d93@newsspool2.arcor-online.net><b1rfdhFntnvU1@mid.individual.net> <kpc3ge$j0k$1@dont-email.me> <b1u40iFb16oU1@mid.individual.net>

Show all headers | View raw


Hi:

    After a bunch of head-scratching and swearing, I have 'runtime build' of 
my variable-length table:

    I initialized the table with a <th> row, then using the code below, I 
added needed data rows thru Ajax.  But each time I went 'ajaxing' for data 
for a new table, I had to eliminate the original data rows first or thedy 
kept building up !

    Anyway, the code is below

Thank y'all !

-Mel


**************************************
// other vrbls set above as var ...

var row,cell ;
var teetable = getobj("iteetable") ;   // get the tee table object
// because we're building from scratch, I have to delete all previous rows
// past the header row

while (teetable.rows.length > 1) {
   teetable.deleteRow(1) ;  // bypass the header and get the first/next/ and 
last data row
   }

for (i=0;i<ntees;i++) {
   aflds = bresult[i].split("^") ;
   nflds = aflds.length ;
   row = teetable.insertRow(i+1) ;    // after the header row
   for (j=0;j<nflds;j++) {
      cell = row.insertCell(j) ;
      cell.innerHTML = aflds[j] ;
      if ( j === 0 ) continue ;    // leave the header background as it was 
set up
      cell.style.color = "black";
      cell.style.background = "#80ff80";
      }
   }

setteewidths()        // then set the widths of the 6 columns as defined by 
Thomas and Denis

.. etcetera ...
******************************************** 

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Prob with IE8 and getElementsByName() "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-11 15:52 -0600
  Re: Prob with IE8 and getElementsByName() Andrew Poulos <ap_prog@hotmail.com> - 2013-06-12 11:01 +1000
  Re: Prob with IE8 and getElementsByName() Martin Honnen <mahotrash@yahoo.de> - 2013-06-12 14:11 +0200
    Re: Prob with IE8 and getElementsByName() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-12 16:33 +0200
    Re: Prob with IE8 and getElementsByName() "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-12 08:37 -0600
      Re: Prob with IE8 and getElementsByName() Andrew Poulos <ap_prog@hotmail.com> - 2013-06-13 08:36 +1000
        Re: Prob with IE8 and getElementsByName() "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-12 16:59 -0600
      Re: Prob with IE8 and getElementsByName() Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-13 09:30 +0000
        Re: Prob with IE8 and getElementsByName() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-13 13:12 +0200
        Re: Prob with IE8 and getElementsByName() "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-13 08:41 -0600
          Re: Prob with IE8 and getElementsByName() "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-13 14:12 -0600
            Re: Prob with IE8 and getElementsByName() "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-13 23:43 +0200
              Re: Prob with IE8 and getElementsByName() Tim Streater <timstreater@greenbee.net> - 2013-06-13 23:19 +0100
                Re: Prob with IE8 and getElementsByName() "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-14 00:34 +0200
                Re: Prob with IE8 and getElementsByName() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-14 10:17 +0200
    Re: Prob with IE8 and getElementsByName() "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-06-13 08:24 +0300
  Re: Prob with IE8 and getElementsByName() Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-06-12 19:01 +0100

csiph-web