[thelist] DOM, removing rows fun [SOLVED]

Tom Dell'Aringa pixelmech at yahoo.com
Tue Oct 1 00:59:01 CDT 2002


--- ".jeff" <jeff at members.evolt.org> wrote:

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > [...] then I saw option 2) and realized that in the for
> > statement, it had the dynamism of
> >
> > var x = numrows - 1; x >= 1
> >
> > which seems to adjust x correctly so no error is thrown.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> rather than adjusting x correctly, the second option loops from the
> end to the beginning.  by doing so it skips the need to change
> numrows or x since it's already passed over those elements that
> will be affected.
>
> good luck,
>
> .jeff

Which is somehow what I meant to say..doh. It was a good solution
though!

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



More information about the thelist mailing list