Jaxer WikiLite Walkthrough
This sample ships with code updated for Jaxer 1.0 and Aptana Studio 1.2 and is a good sources of information but the tutorial has not yet been revised to match.
Contents
- Introduction
- Viewing the sample application
- About the client-side WikiLite code
- Testing the WikiLite application
- Complete WikiLite application code
Introduction
Your Jaxer installation includes an example of a very basic Wiki web application. This simple application allows you to enable text editing, write a few text characters, save your text to a file, and reload your data into the web page when you re-enter or refresh the page.
The diagram below shows the basic flow of this application.
This application consists of a single HTML file (WikiLite/index.html) that contains style information and a bit of JavaScript. Open this page in Aptana Studio to follow along as the following sections walk you through the application code.
Viewing the sample application
Your Jaxer installation (whether as a standalone Jaxer Package or in Aptana Studio) includes the WikiLite application.
To access the WikiLite application from within Aptana Studio:
- In the Samples View, expand the Aptana Jaxer folder.
- Select the WikiLite example.
-
Click either the Preview Sample
button
to do a quick preview of the sample, or click the Import Sample
button
to import the sample as a project into your workspace.
- Navigate to your Jaxer installation folder, and double-click the StartServers.bat file.
- In your web browser, navigate to the following URL: http://localhost:8081/aptana/
- From the column on the left, click the Apps and Tools link.
- Click the WikiLite link.
About the client-side WikiLite code
Before we what happens on the server with the WikiLite application, let's take a look at the client-side code, including how the web page is laid out.
Style information
The head tag of this web page contains some basic CSS styling, contained in a set of style tags:
This styling formats the text area slightly differently than the rest of the page. The .readonly class displays the textarea with a different font and background color when the page is in read-only mode.
The body area
The applicationContent DIV in the BODY consists of a single text area and an input button:

