I dette særtema om aspekter af AI ser vi på skiftet fra sprogmodeller til AI-agenter, og hvordan virksomheder kan navigere i spændet mellem teknologisk hastighed og behovet for menneskelig kontrol.
I must say that using clientHeight as archrajan sugested seems like the basis to the solution.
what you you should exactly do depends on the structure of your table. suppose it is a single td and formattign is always the same you can just premeasure and see what client hights you get per No. of text rows.
If you could tell us more about the table you are try to cound the rows in then I could suggest how to handle it, basicly if its a row by row table I would not measure the clientHeight for the TABLE but for the TD's of each row this way I would not get marin and border measures effecting the rowcount.
below is my testground :) maybe it will give you additional ideas.
Too bad that the only elements that supports createTextRange are: BODY, BUTTON, INPUT type=button, INPUT type=hidden, INPUT type=password, INPUT type=reset, INPUT type=submit, INPUT type=text, TEXTAREA
otherwise you could use .getClientRects().length on it (which was my original thought). as you can see below I tried to use a textarea to mimic the div / TD until I realized They have a different for alltogether :(
SnowFlake
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title>
Hehe ... man skal huske at opdatere sin browser, når man henter kaffe, m.m. ;oD
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.