Learning by doing is the easiest way to learn, right? We think so, too. Below you'll find a series of examples that demonstrate the various aspects of using Taconite.

Each example is small and tightly focused, demonstrating only one or two aspects of using the Taconite framework. The examples are so a nice introduction to using Taconite. All examples will be show code for using the predefined Taconite XML tags, so Taconite can be used with any server-side technology.

Example 1: Hello World

It doesn't get any easier than this, right? This first example demonstrates the basics of using the Taconite client-side library and how to build a server response.

View Example 1

Example 2: Sending Request Parameters

Example 1 doesn't really anything constructive. Most applications of Ajax will include sending some information from the browser to the server as part of the Ajax request, which Example 1 does not do. This example builds off Example 1 by sending various form values to the server as part of the Ajax request.

View Example 2

Example 3: Using Multiple Actions

By now you should be feeling pretty comfortable with Taconite. Examples 1 and 2 demonstrated the basic usage of the Taconite JavaScript client and the basics of writing a server response. Examples 1 and 2 introduced two response actions:

  • Append as children
  • Replace children

With your growing confidence you're probably starting to ask yourself some good questions. Aren't there more actions than append as children and replace children? Can I perform more than one action in a single response? The answer to both questions is "yes" and Example 3 will show you how it's done.

View Example 3

Example 4: Debug Information (and How Does Taconite Work?)

Despite our best efforts, sometimes the code we write doesn't behave the way we think it should. When this happens we need to engage in some debugging to find out what's going wrong.

Knowledge is power, right? Taconite provides a simple debugging console that provides helpful debugging information. It also gives you a glimpse into what exactly Taconite is doing for you under the covers. This short example shows how to enable debugging output in Taconite.

View Example 4

Example 5: Hello World Revisited

Let us revisit the first example to discover how Taconite is able to handle multiple node identifiers and so modify multiple elements.

View Example 5