Rich, "Ajax-style" web sites and applications offer tremendous advantages over both static web sites and desktop applications. But they can be difficult to develop, maintain, and expand. Many of the difficulties on the client side are alleviated by Ajax libraries such as jQuery, ext, and Dojo, and by development environments such as the Aptana IDE. Jaxer, the Aptana server, completes the picture by offering a powerful "Ajax server." With Jaxer, you can: |
|
Simple SampleBelow is a extremely simple sample that shows how to write out server content. Exploring Jaxer code.Press the Source tab in the HTML editor. You'll see multliple colors of code. Code like this runs on the server: function checkValid(contents) { if (contents.length > 10000) { throw "Too long!"; } } Code like this runs in the browser and on the server. To try, change the <script runat="server" to runat="both": function getFilePath() { return "contents.txt"; } In addition, you'll see colors and icons corresponding to server and client code in the Outline view. |
Exploring JaxerAptana Studio provides a number of ways to play with Jaxer. Step 1. Open the servers view and see the Jaxer and Jetty servers running.
Step 2. Play with the Jaxer interactive console.Try the following:
Additional SamplesCheck the samples view for additional samples to preview and import. |