You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Peter Haworth <pm...@edison.ioppublishing.com> on 2000/06/15 15:56:28 UTC

[ANNOUNCE] HTML::StickyForms 0.01

I've finally released my sticky forms module on CPAN. There's currently no user
documentation, but the interface should be fairly self explanatory. I'd
appreciate some comments on the interface, and I'll start working on the docs
for the next release.



The uploaded file

    HTML-StickyForms-0.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/P/PM/PMH/HTML-StickyForms-0.01.tar.gz
  size: 2804 bytes
   md5: a52d669328840c0314309d3e615a540a

No action is required on your part
Request entered by: PMH (Peter Haworth)
Request entered on: Thu, 15 Jun 2000 13:49:15 GMT
Request completed:  Thu, 15 Jun 2000 13:49:26 GMT

	Virtually Yours,
	Id: paused,v 1.68 1999/10/22 14:39:12 k Exp k 

-- 
	Peter Haworth	pmh@edison.ioppublishing.com
"To define recursion, we must first define recursion."


Re: [ANNOUNCE] HTML::StickyForms 0.01

Posted by Peter Haworth <pm...@edison.ioppublishing.com>.
Jeff Stuart wrote:
> Small rant here.  :)  Ok Peter, this looks interesting.  WHAT does it
> do???? :)  And please, to ALL module developers, when you post an
> announcement, even if it's an upgrade, please include a brief description of
> what the module does. :)  Your module may JUST be the thing that I'm looking
> for but if there's no description of what it does I may not know that. :)

Ack, oops!

OK, HTML::StickyForms provides a consistent interface for CGI and mod_perl
programs to generate HTML forms with "sticky" values. This is much like what
CGI.pm does, but with a much smaller remit.

The interface is pretty straightforward:

sub handler{
  my($r)=@_;
  $r=Apache::Request->new($r);
  my $f=HTML::StickyForms->new($r);

  $r->send_http_header;
  print
    "<HTML><BODY><FORM>",
    "Field 1:",
    $f->text(name => field1, value => "default value"),
    "<BR>Radio buttons:",
    $f->radio_group(name => field2, values => [1,2,3],
      labels => {1=>'one', 2=>'two', 3=>'three'}, default => 3),
    "</FORM></BODY></HTML>",
  ;
  return OK;
}

The argument to new() can be one of: an Apache::Request (or subclass) instance,
a CGI (or subclass) instance (CGI 2.x, 3.x), a CGI::State (or subclass)
instance (CGI 3.x), or you can leave it out completely, in which case, there
won't be any sticky values.

This will all get documented very soon, and I promise to at least hint at it in
the next release announcement.

-- 
	Peter Haworth	pmh@edison.ioppublishing.com
"People get annoyed when you try to debug them"
		-- Larry Wall


RE: [ANNOUNCE] HTML::StickyForms 0.01

Posted by Jeff Stuart <js...@ohio.risci2.net>.
Small rant here.  :)  Ok Peter, this looks interesting.  WHAT does it do????
:)  And please, to ALL module developers, when you post an announcement,
even if it's an upgrade, please include a brief description of what the
module does. :)  Your module may JUST be the thing that I'm looking for but
if there's no description of what it does I may not know that. :)

--
Jeff (FurBall)
WebOverdrive Newbie Tech Board
http://www.topniche.com/tech/
furball@weboverdrive.com

-----Original Message-----
From: pmh@edison.ioppublishing.com [mailto:pmh@edison.ioppublishing.com]
Sent: Thursday, June 15, 2000 9:56 AM
To: modperl@apache.org
Subject: [ANNOUNCE] HTML::StickyForms 0.01

I've finally released my sticky forms module on CPAN. There's currently no
user
documentation, but the interface should be fairly self explanatory. I'd
appreciate some comments on the interface, and I'll start working on the
docs
for the next release.



The uploaded file

    HTML-StickyForms-0.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/P/PM/PMH/HTML-StickyForms-0.01.tar.gz
  size: 2804 bytes
   md5: a52d669328840c0314309d3e615a540a

No action is required on your part
Request entered by: PMH (Peter Haworth)
Request entered on: Thu, 15 Jun 2000 13:49:15 GMT
Request completed:  Thu, 15 Jun 2000 13:49:26 GMT

        Virtually Yours,
        Id: paused,v 1.68 1999/10/22 14:39:12 k Exp k

--
        Peter Haworth   pmh@edison.ioppublishing.com
"To define recursion, we must first define recursion."