
Thomas, Would the get'tBodies function be of any help?
======================
tBodies of type HTMLCollection, readonly
Returns a collection of the table bodies (including implicit ones).
.....
insertRow modified in DOM Level 2
Insert a new empty row in the table. The new row is inserted
immediately before and in the same section as the current indexth row
in the table. If index is -1 or equal to the number of rows, the new
row is appended. In addition, when the table is empty the row is
inserted into a TBODY which is created and inserted into the table.
======================
So, when you first call insertRow, TBODY is created. Then you call
get'tBodies and I think at the index 0, you'll get the TBODY you need.
Correct?
On Dec 4, 2007 8:12 PM, Thomas Hartman
Grepping around, I see functions for table creation / manipulation in the javascript DOM stuff, but nothing for the tbody tag.
Is this because it's missing from the IRL DOM specification, or a bug, or what? Should I add functionality for creating this tag myself, or is it easier to fix the generated haskell?
I ask because the place where I want to use this javascript from haskell stuff should be making a tbody embedded in a div that is smaller than the tbody; in modern browsers renders as a table with scrollbars.
Thanks, thomas.
thartman@none:~/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell/DOM/Level1>grep -irl mkTable * | grep .hs HTMLTableColElement.hs HTMLTableElement.hs HTMLTableSectionElement.hs Html.hs_unsplit
thartman@none:~/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell/DOM/Level1>grep -irl tbody * | grep .hs thartman@none:~/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell/DOM/Level1>cd ..
-- Dimitry Golubovsky Anywhere on the Web