Aejaks - Tcl/Tk Style Framework Built on Echo2

Written by on January 22nd, 2007 in Ajax News.

For those Ajax cowboys out there who pine for the power and simplicity of Tcl/Tk, there is good news for you: Aejaks lets you write Ajax apps using Tcl. The widget model is inspired by that of Tk, but is not compatible with it.

JAVASCRIPT:

  1.  
  2. #####################################################################################
  3. # showCode - create a new window, show the code from the code array
  4. proc showCode {name} {
  5.     global code
  6.     set w .split.s2.win
  7.     if {[info exists ::$w.code_$name]} {
  8.  return
  9.     }
  10.     WindowPane $w.code_$name -title “$name Code” -width 600 -height 600
  11.     ContentPane $w.code_$name.c -background white -insets 10
  12.     Pack $w.code_$name.c  -insets {10 10 10 10} -border {4 black solid}
  13.     TextArea $w.code_$name.c.t -text $code($name) -foreground black -background white -width 800 -height 600  -border {3 black groove}
  14.     Pack $w.code_$name.c.t
  15.     Pack $w.code_$name
  16. }
  17.  

aejaks.png

It uses Jacl, a Java implementation of the Tcl language and is implemented on top of another framework we are familiar with: Echo2.

Echo2 is a Java based windowing toolkit for building Ajax-enable applications. Aejaks translates most of the Echo2 Java objects into Tcl objects, but provides many shortcut features, such as anonymous object construction for attribute-type objects.

There is a console included in the source that allows you to do some interactive scripting with Tcl, otherwise it looks like you have to compile the Tcl into an app before deploying.

This is another sign that 2007 will be a year of intermediate forms, i.e. frameworks the compose and build on other frameworks. Wait until 2008 until we see something truly new.

Source: Ajaxian
Original Article: http://ajaxian.com/archives/aejaks-tcltk-style-framework-built-on-echo2

Leave a Reply

You must be logged in to post a comment.



Site Navigation