From: Rasputin Date: 2003-07-15T11:14:10+09:00 Subject: Re: ruby-specific CGI question (I think) * Hal E. Fulton [0706 03:06]: > ----- Original Message ----- > From: "Mark J. Reed" > To: "ruby-talk ML" > Sent: Monday, July 14, 2003 9:00 PM > Subject: Re: ruby-specific CGI question (I think) > > > > On Tue, Jul 15, 2003 at 10:45:52AM +0900, Hal E. Fulton wrote: > > > > The problem is not that it is using session management. The problem > is > > > > that these things are being visually displayed in my web browser as > > > > rectangles. Any idea how to make /that/ stop? > > > > > > Well... doesn't fieldset draw a box?? I've never > > > used it, but I've seen documentation that says > > > it does that. > > > > > > Why is 'fieldset' used there anyway? Will it work > > > if you remove it? > > > > Yes, the fieldset is the problem, but I get the impression that Kurt > > isn't generating that himself, but rather that CGI::Session is > > inserting it for him. It'd help if I could see the code, though. > > That's my impression also; but why should the > session lib use that feature? > > By 'remove it' I meant either save the HTML and > edit it out and see how it looks (may not be > possible) or simply (temporarily) change the > library source. Even easier: cgi.form() seems to just return a String - see that snippet I sent earlier: formString = cgi.form(method="get") { cgi.text_field("key") + cgi.text_field("value") + cgi.submit("add") } You should be able to work on formString like any other String, remove any garbage that got in there, then just puts() it to the browser. -- Boston, n.: Ludwig van Beethoven being jeered by 50,000 sports fans for finishing second in the Irish jig competition. Rasputin :: Jack of All Trades - Master of Nuns