CGI-Screen

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      my $screen = $query->last_screen;
      print
        $query->p("You came from screen $screen. Press "),
        $query->goto_screen($query->last_screen),
        $query->p(" to go back");

    `last_screen' returns screen name and title in list context and screen
    name in scalar context. Do not use the CGI parameters `screen_last_*'
    since they are changed before you can get hold of them `;-P'

  The callbacks

    All callbacks are called with three arguments: The query object, the
    screen name and the screen title (= button/anchor text). Callbacks
    should return a string.

    `application'
    The `application' method returns a string which is used in the default
    `title' and `headline' callbacks. The Default method returns the string
    `"CGI::Screen Test"' and should definitely be overwritten by your
    application.

    `title'
    The result of the method is used in the HTTP header and in the default
    headline. It defaults to the *application*.

    `headline'
    The `headline' method should return a chunk of HTML code to start the
    Screen. It defaults to the *title* enclosed in `H1' tags.

lib/CGI/Screen.pm  view on Meta::CPAN

  print
    $query->p("You came from screen $screen. Press "),
    $query->goto_screen($query->last_screen),
    $query->p(" to go back");

C<last_screen> returns screen name and title in list context and
screen name in scalar context. Do not use the CGI parameters
C<screen_last_*> since they are changed before you can get hold of
them C<;-P>

=head2 The callbacks

All callbacks are called with three arguments: The query object, the
screen name and the screen title (= button/anchor text). Callbacks
should return a string.

=item C<application>

The C<application> method returns a string which is used
in the default C<title> and C<headline> callbacks. The Default method
returns the string C<"CGI::Screen Test"> and should definitely be
overwritten by your application.

=item C<title>

The result of the method is used in the HTTP header and in the default
headline. It defaults to the I<application>.

=item C<headline>



( run in 0.901 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )