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.
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:
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.
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 applicationContent DIV in the BODY consists of a single text area and an input button: