[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: [ruby-talk:00521] Re: CGI.rb
From: Wakou Aoyama <wakou () fsinet ! or ! jp>
Date: 1999-07-24 20:57:35
[Download RAW message or body]
Hello.
On Sat, Jul 24, 1999 at 08:09:14PM +0200,
Michael Neumann <neumann@s-direktnet.de> wrote:
> I am using CGI.rb. It's very nice.
Oh, thank you.
> But, is it possible to create tables with it?
CGI.rb has no special way to make table for now.
cgi.table{
cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } +
cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } +
cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} }
}
require 'CGI'
cgi = CGI.new("html4Tr")
table = [
['00', '01', '02', '03'],
['10', '11', '12', '13'],
['20', '21', '22', '22'],
['30', '31', '32', '33']
]
print cgi.table{
table.collect{|row|
cgi.tr{
row.collect{|item|
cgi.td{ item }
}
}
}
}
--
Wakou Aoyama <wakou@fsinet.or.jp>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic