I took a quick look at this, and I don't know how we would do it. Using
my example table below, The table itself only has 2 cells on the row
after the rowspan.
Even other methods like the one below only show it has having 2 cells, I
guess cos in reality it does only have 2 cells.
irb(main):011:0> puts ie.table(:index,1).row_values(3)
c2
c3
Sorry I couldn't help more
Paul
<html>
<body>
<table border=1>
<tr>
<td>c1<td>c2<td>c3
<tr >
<td rowSpan=2 >2 rows<td>c2<td>c3
<tr>
<td>c2<td>c3
<tr>
<td>Normal<td>c2<td>c3
</table>
</body>
</html>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hue Mach Dieu
Sent: 10 August 2005 19:47
To: [email protected]
Subject: [Wtr-general] Help read data in table with Row Span
Dear All,
My application table display data as like this
-----------------------------------------------
| Col 1 | Col 2 | Col 3 | ...
-----------------------------------------------
| V1 | V2 ..
| Row 1 | -------------------------------------
| V3 | V4 ..
-----------------------------------------------
| Row 3 | V5 | V6...
-----------------------------------------------
...
When I use method: table(..).to_a
I got this result:
=> [["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["V3",
"V4",..],"Row 3", "V5", "V5",..] ]
Looking this result, I found this value ["V3", "V4",..] missing 1
column.
So any solution for this table, that mean I would like the value get
from table always don't missing any column and row in case have row span
or column span
Ex: With the case above, I would like the value I got from table as like
this:
[["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["nil", "V3",
"V4",..],"Row 3", "V5", "V5",..] ]
Or
[["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["Row 1",
"V3", "V4",..],"Row 3", "V5", "V5",..] ]
Thank you for help.
Hue
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general