Tips_tutorials   >   Studiojs201   >   Introduction

Introduction

Welcome to the Studio JS 201 tutorial. (JS stands for JavaScript)

The Studio JS 201 tutorial is the first in a series of tutorials which take you step by step through writing an Omnis Studio ultra-thin web application. An ultra-thin web application does not use the Omnis Web Client plug-in. Users can interact with your Omnis Studio application using FireFox, Internet Explorer, or Safari... no plug-ins required! Functionality on the client side is provided using JavaScript. Page decoration (fonts, colors, borders, etc.) control on the client side is provided by CSS (Cascading Style Sheets).

Overview

There are several components to the ultra-thin client application you will be building in this tutorial.

  1. The Omnis Studio library which contains the remote task classes.
  2. Omnis Web App Server is the instance of Omnis Studio listening for messages from the CGI or Script. If it receives a request it instantiates the specified remote task and sends it a $construct message with the HTTP request parameters in a row variable.
  3. The web server which receives standard HTTP requests. Port 80 is the default port for HTTP requests.
  4. The CGI or Script which handles communication between the web browser and the Omnis Web App Server.
  5. The user's web browser which displays web pages sent to it from the web server.
  6. JavaScript which adds functionality to the web page and sends requests to the web server CGI or script.

The following communication takes place in the demo we will be building.

  1. Using a web browser the user requests a static web page from the web server, searchcountries.htm
  2. The webserver responds with the HTML which the web browser displays to the user.
  3. The user fills in a search value and clicks the Search button on the web page.
  4. The Search button calls a JavaScript function which checks to make sure a search value has been entered, and then sends the request to the web server CGI or script.
  5. The request is processed and forwarded to the Omnis Web App Server which instantiates the specified remote task in the specified library and sends a $construct message with the HTTP parameters in a row variable.
  6. The remote task processes the request building the HTML for a new page with the search results. The HMTL page is returned to the Omnis Web App Server which passes it back to the CGI or Script which passes it back to the web browser.
  7. The web browser displays the HTML to the user.

Here is the finished product of what we are going to build in this tutorial.

SearchCountriesBrowser.jpg