Logo
  Home About Us ProductsSyntax Testimonials contactUs
 
Caravan Business Server » Application Server

Caravan Business Server has it’s Inbuilt Scripting Language which is embedded in HTML. This language has been repeatedly endorsed as very easy to use.
Click here for sample code & Help files.
By just learning Caravan one can write very powerful and high performance applications, in a short period.
 
 Caravan Scripting language – Hello World example.
 <html>
 <head>
 </head>
 <body>
 <table>
 <tr>
 <td> Displaying Hello World text using Caravan Scripting Language: 
     <caravan>
         “Hello World”
     </caravan>
 </td>
 </tr>
 </table>
 </body>
 </html>

File and Folder access
Caravan interfaces to the underlying file system using folder and file objects. This makes it possible to access the native file system in a platform independent manner.

Event handling, queues and scheduling of tasks
Messaging and communication require mechanisms for queuing and event handling. Messages can be queued fifo based, priority based, time based or a combination of these, and event handlers can be written to handle these queues in concurrently running threads with low cpu usage and instantaneous response to critical events.

Tasks can also be scheduled in the most flexible manner using schedulers. The user can define single or multiple schedulers, running concurrently.

The user can define its own Event Handler and queues. You can multiple event handlers and queues, running simultaneously.

Invoking executable files (exe)
Caravan can take help of existing utilities for processing information and performing complex tasks. So application builder can integrate existing expertise to caravan's in-built capabilities.

XML Parser
Caravan uses XML to describe its database tables and has a built-in parser to handle XML documents. XML documents are respresented as objects which can be accessed from caravan language.

Text Parser / String Comparison
Caravan gives excellent feature to do string compare or parse text.

Persistent Object
A variable can be made available to multiple html pages, by making it persistent. It is similar to the concept of ‘session’ variables.

Http request form
When a request is posted to the server an object with name "form" is added to the object list of caravan.

The domain and user concept
In caravan the users are grouped into various domains. Each user has a domain property which can have multiple values. CARAVAN platform includes built-in Web security. Each HTML page can be protected You can restrict access to the caravan generated pages by using the domain statement:

domain <domainname>|<domainname>|....|<domainname>
example :
 domain admin;// access to only admin users.
 
 caravan automatically prompts for login , if the users does not have one of the domain names.

Conditional Statements
If..Else and Loop…Repeat statements

Encryption of Source Code
The application code written in Caravan language can be encrypted, protecting the system and code from unauthorized modifications and usage.

Redirecting Caravan output
Caravan script is used to output dynamic data to the browser. This is done by invoking the object property that has to be displayed. The syntax of this is:

<caravan>
"This is dynamic data :";objectname(propertyname);"<br>" // emits the value to output stream
</caravan>

As you can see constant strings are also output in the above code. This 
 gives great flexibilty in formating the output. 
 
Many other types of output like Output to the console, output to a variable, output to a file, close outout etc.

Time variable
Define a time variable e.g Time now. Can access year, month, date, hour, minute and secs.

Many more functionality and syntax like:
Redirection of page, Label and Goto statements, Process Termination - Over statement, modes (modes.txt), decimal numbers (real.txt), include, sleep, exception, special files, arithmetic, request environment, form (get, put or post) methods, filters, break, etc