Tutorial: 01 - Using the Tutorials

01 - Using the Tutorials

All of the examples presented in this manual are written in JavaScript. It is intended that you run these from a modern web browser (Internet Explorer 10+, Firefox 11+, Chrome 16+). In theory any JavaScript interpreter will work (NodeJS, Rhino, or similar) assuming there is a WebSocket implementation available for that interpreter.

To run these examples from a browser you'll need a short web page to load and run your tutorial:

<!DOCTYPE html>
<html>
    <head>
        <title>Scriptel OmniScript Tutorial</title>
        <script type="application/javascript" src="tutorial.js"></script>
    </head>
    <body onload="tutorial();">
    </body>
</html>

Create a file, place these contents in it and save it as "tutorial.html". Now create another file called "tutorial.js" this is where we'll put the contents of the tutorials.

Browser Specific Notes

The tutorials in this document will make use of the developer console feature of your browser. See the heading for the browser you're using for information on how to open the developer console for your browser.

Google Chrome

To open the developer console in Google Chrome: click the paragraph icon in the top right of the browser (three horizontal lines). From there select the "Tools" button in the drop down menu and click the "Developer tools" option. From the frame that appears at the bottom of the screen hit the "Console" tab.

Microsoft Internet Explorer

Internet Explorer disallows running scripts from locally stored web pages (e.g. content not served from a web server) by default. You'll be presented with a yellow bar at the bottom of your screen telling you "Internet Explorer restricted this webpage from running scripts or ActiveX controls". In order for the example to work you'll need to hit the "Allow Blocked Content" button.

To open the developer console in Internet Explorer 10: Hit the gear icon in top right, and then click "F12 Developer Tools". From the frame that appears at the bottom of the screen hit the "Console" tab.

Mozilla Firefox

To open the developer console in Mozilla Firefox: Click the Firefox menu in the top left and select the "Web Developer" option. From there click the "Web Console" button.