• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

A Perl widget library for the web ...

Viktor Kojouharov was sick of constantly having html code snippets inside his perl code. He was seeing too many projects where the code was a messy mixture of perl, html, and in some places, javascript. Since he is familiar with the Gtk+ toolkit he decided to make something similar targeted for the Web.

He ended up with IWL which is, in Viktors words:

    basically a graphical toolkit, or widget library, much like Gtk+ or the ETK library for enlightenment. The main goal of this library is to create a full blown RIA, without the need to write html in your code. When I started working on it roughly a year and a half ago, there was nothing similar existed for Perl. By using the library where I work, it has so far mostly achieved its main objective (and has also proven to be an excellent subject for my diploma thesis :))

If you are a Perl developer who prefers writing apps in a toolkit style like below, then IWL may be fore you:
PLAIN TEXT
PERL:


   1.
      
   2.
          use IWL;
   3.
        
   4.
          # create the main container, and a few widgets
   5.
          my $page = IWL::Page->new;
   6.
          my $frame = IWL::Frame->new;
   7.
          my $iconbox = IWL::Iconbox->new
   8.
              (width => 800px, height => 600px);
   9.
          my $button = IWL::Button->newFromStock
  10.
              (IWL_STOCK_CANCEL);
  11.
          my %some_icon_info = ("foo.jpg" => foo, "bar.png" => ar);
  12.
      
  13.
          # Setting up the icons and adding them to the iconbox
  14.
          foreach (keys %some_icon_info) {
  15.
              my $icon = IWL::Iconbox::Icon->new;
  16.
              $icon->setImage($_);
  17.
              $icon->setText($some_icon_info{$_});
  18.
              $icon->setDimensions(64px, 64px);
  19.
              $icon->setSelected(1) if $_ == isomething;
  20.
              $iconbox->appendIcon($icon);
  21.
          }
  22.
      
  23.
          $page->appendMetaEquiv("Cache-control" => "no-cache");
  24.
          $frame->setLabel("Frame label");
  25.
          # Adding the children to their parents
  26.
          $frame->appendChild($iconbox);
  27.
          $frame->appendChild($button);
  28.
          $page->appendChild($frame);
  29.
      
  30.
          # Finally printing the page
  31.
          $page->print;
  32.
 source: ajaxian    

 View Full Story.
Posted at 10:53:50 am | Permalink | Posted in Perl  

Related Stuff

  • MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.

  • Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone

  • TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support

  • ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.

  • Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.

  • Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software

  • PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Be the first ... |Add your comment.

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


Top Stuff

e-messenger

MessengerFX

eBuddy

ILoveIM

AIM Express

Top 20 Ruby CMS


Our Partners

Facebook Applications

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines

Stock Exchange Chat


About Ajaxlines

Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.

Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.


Search


Topics

  • .Net (111)
  • Articles (85)
  • Bookmarking (35)
  • Calendar (19)
  • Chat (39)
  • ColdFusion (3)
  • CSS (41)
  • Email (23)
  • Facebook (23)
  • Flash (15)
  • Games (6)
  • Google (28)
  • Html (14)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (36)
  • Javascript (171)
  • JSON (21)
  • Perl (2)
  • PHP (88)
  • Presentation (19)
  • Python (3)
  • Resources (2)
  • RSS (1)
  • Ruby (10)
  • Storage (4)
  • Toolkits (90)
  • Tutorials (199)
  • UI (12)
  • Utilities (167)
  • Web2.0 (13)
  • XmlHttpRequest (20)
  • YUI (4)

© 2006 www.ajaxlines.com. All Rights Reserved. Powered by IRange