July 27, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

Wt: C++ Web Toolkit Library Lets You Write Scripting-Independent Web Apps

  • June 6, 2008
  • By Victor Volkman
  • Send Email »
  • More Articles »
<body onload="setTimeout(Wt.private.load,0);"
      onmousemove="return Wt.private.dragDrag(event);"
      onmouseup="return Wt.private.dragEnd(event);"
      ondragstart="return false;">
<div id="o3e03"><div id="o3e04"></div>
<div id="o3e05"><span id="o3e10">Your name, please? </span>
<input id="o3e11"
       name="o3e11"
       size="10"
       type="text"
       onkeydown="var s='';if((event.keyCode &&
          event.keyCode == 13)){s='sa28';}if(s.length!=0)
          {Wt.private.update(this, s, event, true);}" value="">
</input>

<button id="o3e12"
        type="button"
        onclick="Wt.private.update(this, 'sa27', event, true);"
        style="margin-top:0.0px;margin-right:0.0px;
               margin-bottom:0.0px;margin-left:5.0px;">Greet me.
</button>

<br id="o3e13" /><span id="o3e14"></span></div>
<iframe id="o3e06"
        class="Wt-resource" name="o3e06"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
           amp;resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e07"
          class="Wt-resource" name="o3e07"
          src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
               resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e08"
        class="Wt-resource" name="o3e08"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e09"
        class="Wt-resource" name="o3e09"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0a"
        class="Wt-resource"
        name="o3e0a"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0b"
        class="Wt-resource"
        name="o3e0b"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0c"
        class="Wt-resource"
        name="o3e0c"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0d"
        class="Wt-resource"
        name="o3e0d"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0e"
        class="Wt-resource"
        name="o3e0e"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&rand=627318544">
</iframe>
<iframe id="o3e0f"
        class="Wt-resource"
        name="o3e0f"
        src="?wtd=pm5i5XOtcGx7paaYMTZgbRd7Pae3xORU&
             resource=o3e06&amp;rand=627318544">
</iframe>
</div>

<script type="text/javascript">
   /*<![CDATA[*/

   /* ]]> */
</script>

Conclusion

Well, you could say that you haven't really pushed the envelope with your Hello World app, but I thought it would be more useful to take a really close look at a simple app rather than just seeing a small bit of a sophisticated app. In reality, there's lots of Wt example programs to look at which show off things like drag-and-drop, chat, calendar, file tree explorer, email composer, and bar graphs. There is some fascinating stuff such as the Composer widget that encapsulates the whole set of Gmail type message composing, including managing uploaded attachments and letting them transfer asynchronously. Any one of these would probably need as thorough a treatment as you had here to explain them, but again the point is that you can simply instantiate them, connect signals to slots, and begin coding immediately.

Also, and it should be apparent, I hope that your C++ app on the back end of this web-fronted GUI has all the capabilities it would normally have with respect to connecting with databases, reading and writing files, and all the real work that apps have to do to fulfill their business logic. Wt has been a bit of a latecomer to all the web application frameworks, but it comes at a time when the freight of many of these is simply overwhelming and being able to work in a familiar C++ framework is perhaps just what the doctor ordered.

About the Author

Victor Volkman has been writing for C/C++ Users Journal and other programming journals since the late 1980s. He is a graduate of Michigan Tech and a faculty advisor board member for the Washtenaw Community College CIS department. Volkman is the editor of numerous books including, C/C++ Treasure Chest and is the owner of Loving Healing Press. He can help you in your quest for open source tools and libraries; just drop an email to sysop@HAL9K.com





Page 3 of 3



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel