Web Components are defined in HTML files. In order to be able to create a Web Component, you need to import that file into the HTML DOM. With VirtualUI you can do this from your Windows app by calling the ImportHTML method of the HTMLDoc component.
Let's suppose that you are about to include some new functionality and logic which may need some Javascript library that is currently not loaded.
In order to load this new javascript library you can use the LoadScript method of the HTMLDoc component.
Let's suppose we include a web component that needs to display a signature, and the signature image file is somewhere in the file system. Complying with standard web server specifications, Thinfinity VirtualUI forbids the access to files that are not in the root web tree. This means that to access that image file, you would be forced to first place it in the application's web tree. This wouldn't be neat!
With the purpose of providing secure urls to files that are not within the web tree root, we included the CreateSessionURL and GetUniqueURL methods. These methods help you create virtual URLs for the application session's lifetime, or for a specific file and valid only during a specified lifetime, in minutes.
Web Components are a new and exciting technology that takes the well known "reusable software components" concept to the web. With this HTML5 specification you can build HTML+javascript pieces and use them as a custom HTML element.
In Thinfinity VirtualUI you can easily embed Web Components in your Windows application. Some Web Components examples are: a native video streaming component, a raw printing component, a QR component, a signature component, a Google Maps component, and so on.
With the purpose of embedding a Web Component in a Windows application, we provide a specialized object that allows you to:
· Load and run Web Component Javascript files from the Windows app.
· Import Web Component HTML files from the Windows app
· Securely access local resources that are not in the application's web tree (needed to deploy web or media files in your application)