Creo.JS application is written in JavaScript. It is deployed on a single web page. It is a distributed application which consists
of two parts:
|
• |
JavaScript sections that control dynamic HTML user interface and user interaction. These scripts can contain combination of
HTML browser APIs for DOM manipulation and Web.Link APIs. This part of the application runs in the browser. |
|
• |
JavaScript sections that interact with the Creo toolkit APIs. These scripts are loaded in the Creo process and are executed by the Creo.JS engine, which is a part of the Creo process. |
The parts of the application that interact with the Creo session can be combination of Web.Link code that is executed in the browser and Creo.JS code that is executed in Creo. This enables you to gradually move your applications from Web.Link to Creo.JS. Since both parts of the application run in different processes they cannot exchange direct references to their runtime objects.
They interact by passing JSON objects. All calls between environments are asynchronous. You must use programming patterns,
such as, AJAX subscription style, or reactive development in Node.js, for distributed application development in JavaScript.
Use JavaScript promises in Creo.JS to work with callback functions.
Creo.JS supports all the Web.Link APIs. Similar to the Web.Link application, the Creo.JS application is sent to the embedded browser of Creo and does not require any additional components.