public
Description: an unobstrusive javascript UI framework
Homepage:
Clone URL: git://github.com/imedo/thc2.git
thc2 /
name age message
file .gitignore Wed Jun 04 23:48:53 -0700 2008 Serveral fixes for * MnemonicForm * RemoteLin... [hvolkmer]
file README.txt Loading commit data...
file Rakefile Wed Jun 11 07:22:09 -0700 2008 HTC behavior optimization for IE. disabled for ... [tkadauke]
directory examples/ Tue Nov 18 08:40:14 -0800 2008 added example for text_area, updated documentation [langalex]
directory lib/
directory src/ Thu Apr 30 19:07:53 -0700 2009 merge with main repository [tkadauke]
directory test/
directory vendor/ Tue Jun 03 13:31:13 -0700 2008 first commit [hvolkmer]
Design principles of this library
---------------------------------

1. Be unobstrusive.

For a Javascript library, being unobstrusive means leaving as few traces of Javascript code in the markup as possible. 
In fact, you can build rich user interfaces with this library with little or no Javascript in the markup. This is 
accomplished by a few conventions:

- all elements that should gain javascript controlled behaviors need to add a CSS class. The class must have the prefix 
"thc2-", for example "thc2-popup".
- To customize the behavior for certain elements, additional parameters are given in additional classes (so called class 
parameters), such as "thc2-popup box_size_1024x768".

2. Work even without javascript support.

To support older browsers, and to limit the damage when Javascript does not work correctly, almost all user interface 
elements in this library either also work without Javascript (though not that comfortably), or have a fallback interface 
that is visible when Javascript is turned off.

3. Be reusable.

It is the goal of this library to provide small reusable building blocks of Javascript, which can be combined to bigger 
compositions. For example, the EditorTabWidget subclasses the TabWidget class, and contains a TinyMCEWidget instance.