It looks like you may be rendering a <tr> in the else that isn't enclosed in a <table>. It may be going into the DOM but may just not be visible where you expect.
I'd step through the code and watch what's added into the liHtml variable (it's always funny to see my variable names used in different contexts). My guess is that it's simply invalid HTML.
As for closing things off, I generally start the container before the loop and close it after the loop.
M.
I'd step through the code and watch what's added into the liHtml variable (it's always funny to see my variable names used in different contexts). My guess is that it's simply invalid HTML.
As for closing things off, I generally start the container before the loop and close it after the loop.
M.