The very first step is that we need to add a new MIME type to the web server that will be used. The two MIME types that must be added are:
text/iwml iwml text/acorn nut
Please refer to MIME types if you need further assistance in doing this. This step only needs performed once for each web server and not for every application.
Pick a Path
Pick a location on your web server to deploy your IntraWeb application. For this tutorial we will assume that your application will be deployed at:
To do this, simply copy the IWCL library files and sub directories into your HelloWorld directory.
Every IntraWeb application needs at least one HTML loader. Some have more than one HTML loader to map pages as unique URLs. For now we will use a minimal HTML loader.
In your HelloWorld directory create a file named index.html with these contents:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="CACHE-CONTROL" content="NO-CACHE"> <script src="IntraWeb.js" data-Source="*"></script> </head> <body></body> </html>
IWML is an abstraction for HTML in the same manner that many desktop UI frameworks are abstractions for lower level GDI, DirectX or OpenGL calls.
IntraWeb 17 supports many advanced controls including JQueryUI, Bootstrap, ExtJS and more. But for now, we start out simple with just plain text.
In your HelloWorld directory create a file named Index.iwml with these contents:
We will continue to expand on IWML throughout this tutorial. If you want to dive deeper into it you can return later to the IWML tutorial.
To run our application we enter the URL to our application path:
If you followed this tutorial correctly, you should see something like this:
Congratulations! Although very simple and not very useful, you have now deployed your first IntraWeb application.