Caravan Business Server>Help>Introduction>Basics |
Text
|
All the code to be parsed by the Caravan Business Server engine has to be enclosed within <CARAVAN> and </CARAVAN> tags within the web page (<HTML> <BODY> text and Caravan Code</BODY> </HTML>). Case of Caravan is not important. Caravan, CARAVAN and caravan have the same meaning for the Caravan Business Server. In all our examples, we use <CARAVAN> and </CARAVAN>tags. Note We assume you know your HTML basics and you will include the Caravan script in web pages with the correct HTML syntax.
|
Sample
|
Let us start with a simple example: "Hello world" <br> <HTML> <BODY> <CARAVAN> VAR display display(val)="Hello World" display(val);"<br>" </CARAVAN> </BODY> </HTML>
Single line of code <CARAVAN>time now;"Current Month is";now (month)</CARAVAN>
Multiple lines of code <CARAVAN> time now "Today's date is <br>" now(date);" /";now(month);" /";now(year);"<br>" "The time is <br>" now(hour);":"; now(minute);"<br>" </CARAVAN>
|
Quick Reference
|
Are you worried that you will make some silly mistakes and mess up your code? Not to worry. Caravan Business Server carries out a syntax check when you save the web page. The syntax check parses the code and identifies incorrect keywords, omitted punctuation, and missing Caravan tags. Tip * Name your files (web pages) systematically so that they are easy to remember. Web pages that have scheduling in them can have a pre-fix of sch. Example: schcustbal.html for files that are scheduled to be executed to display the customer balance.
|
Back
|