Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    WML::Card 0.02

    Download button

    No screenshots available
    Downloads: 353  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mariana Alvaro | More programs
    Perl Artistic License / FREE
    March 27th, 2007, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    WML::Card description

    WML::Card is a Perl extension for builiding WML Cards according to the browser being used.

    WML::Card is a Perl extension for builiding WML Cards according to the browser being used.

    SYNOPSIS

    use WML::Card;
    my $options= [ ['Option 1', 'http://...'], ['Option 2', 'http://...'], ];
    my $c = WML::Card->guess('index','Wap Site'); $c->link_list('indice', undef, 0, $options, $options); $c->print;

    This perl library simplifies the creation of WML cards on the fly. It produces the most suitable wml code for the browser requesting the card. In this way the one building the cards does not have to worry about the differences in how each wap browser displays the wml code. In combination wht WML::Deck it provides functionality to build WAP applications.

    Methods

    $card = WML::Card->guess( $id, $title, [$user_agent] );
    This class method constructs a new WML::Card object. The first argument defines the WML card's id and the second argument its title. The if the third argument is not defined, the value is obtained from $ENV{'HTTP_USER_AGENT'}.

    $c->buttons($label, $type, $task, $href)
    $c->table ($data, $title, $offset, $pager, @headers)
    $c->link_list($name, $listtitle, $offset, $pager, $data, $align)
    $c->value_list($name, $listtitle, $offset,$pager,$data)

    The variable $data is an array reference like: my $menu_items= [ ['Option 1', 'http://...'], ['Option 2', 'http://...'], ];

    The variable $pager is the number of items wanted to be displayed in each card.

    $c->print
    $c->info($content)
    $c->img($file, $alt)
    $c->input($label, $text, $name, $format, $type, $size, $target, $arg);
    $c->link($target, $text);
    $c->br

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    builiding WML Cards | Perl module | Perl library | WML::Card | builiding | WML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM