[thelist] dynamic javascript loop help

Hassan Schroeder hassan at webtuitive.com
Tue Jan 18 12:10:44 CST 2005


Joshua Olson wrote:

> document.getElementById('row_'+a+'_col_'+f).innerHTML;
/
> Caveat: Untested code, and innerHTML is not standards compliant [0].
> Perhaps we could use innerText instead?

Better yet, why not get 'value here' from this:

    <td id='row_0_col_0'>value here</td>

:: with this:

document.getElementById('row_'+a+'_col_'+f).firstChild.nodeValue

YMMV!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.




More information about the thelist mailing list