• 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.

View More Info

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


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.


Recent Stuff

Using ASP.NET AJAX JSON Asynchronous Web Services

Growl for Windows and a Web Notification API

Learn AJAX from Scratch - Part II

Learn AJAX from Scratch - Part I

PHP AJAX CHAT, Bug fixes - including weird mozilla bug

Learn PHP From Scratch


Our Partners

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines


Search


Topics

  • .Net (96)
  • Articles (76)
  • Bookmarking (35)
  • Calendar (18)
  • Chat (38)
  • ColdFusion (3)
  • CSS (30)
  • Email (23)
  • Flash (13)
  • Games (6)
  • Google (17)
  • Html (6)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (34)
  • Javascript (146)
  • JSON (16)
  • Perl (2)
  • PHP (82)
  • Presentation (19)
  • Python (3)
  • Resources (1)
  • RSS (1)
  • Ruby (7)
  • Storage (4)
  • Toolkits (87)
  • Tutorials (190)
  • UI (11)
  • Utilities (161)
  • Web2.0 (13)
  • XmlHttpRequest (18)
  • YUI (4)

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