Friday, January 20th, 2006

Wt: C++ Ajax Framework

Category: Library

Have you been wishing that you could code up a storm of Ajax with C++? Well, you are in luck with Wt: a web toolkit.

What is Wt?

Wt (pronounce wit-ty), is a C++ library to develop web applications.

The API is widget-centric, and inspired by existing C++ Graphical User Interface APIs. To the developer, it offers complete abstraction of any web-specific implementation details.

Existing frameworks (such as based on PHP or JSP/JSF (+ servlets + struts)) for developing web application do not make abstraction of the peculiarities of the underlying technologies (HTML, JavaScript, CSS, AJAX, Forms, DHTML). As a consequence, a developer must gain familiarity with all of these (evolving) technologies. Moreover, when chosing to use a technology, the developer is responsible for graceful degradation when the technology is not available or disabled in the browser. At the same time, the structure of the application follows mostly the page-centric paradigm of early day HTML.

In contrast, a web application developed with Wt does not differ in structure from an application developed for other graphical user interface systems, such as Windows or the X Windowing System. Most imporantly, the entire application is written in only one compiled language (C++), from which the library generates the necessary HTML, Javascript, CGI, and AJAX code. The responsibility of writing browser-portable web applications is transferred to the library implementation. For example, if available, Wt will maximally use JavaScript and AJAX, but applications developed with Wt are also able to function correctly when AJAX is not available, or when JavaScript is disabled, reverting to a completely different technology for communication between browser and server. An application developed with Wt is technology-agnostic.

Example code

Wt comes with a tutorial, including a tree sample:


Posted by Dion Almaer at 9:54 am

3.9 rating from 47 votes


Comments feed TrackBack URI

wow what cool source code and examples – I would be in the dark without it heheheh

Comment by gary lewis — May 9, 2006

This site is a pleasure to read … a lot of good resources here thanks guys for the help :-)

Comment by recipe management — May 9, 2006

Skybean Labs has a similar Web Application Framework developed using C++, Check out the site for more details

Comment by sandeep — March 23, 2007

Leave a comment

You must be logged in to post a comment.