Modifying the HTML file |
Top Previous Next |
You need a remote application container in your web page. This can be either:
You will be able to configure this through the connection mode (step 6b explained further below).
Modifying your html file, step-by-step:
1. Open the HTML page for editing.
2. Add these meta tags into the <head> tag:
3. If you want the Thinfinity® VirtualUI™ for FireMonkey® integration to work with iOS, add the following <meta> tags into the <head> tag.
4. Add a reference to the css stylesheet files into the <head> tag. These files must be deployed with your website/application.
5. Add the following libraries inside the <head> tag:
a. The jQuery library (jquery.min.js):
b. Point a script tag to the Thinfinity® VirtualUI™ for FireMonkey® SDK client library (sdk.min.js): this file will have to be deployed with your website/application. The tag below should be added to the <head> section, too.
6. Also inside the <head> tag, add one more <script> tag. The GetWebFMX method creates the object that handles the Thinfinity® VirtualUI™ for FireMonkey® SDK functionality. It has two arguments: the Thinfinity® VirtualUI™ for FireMonkey® server URL and the connection mode in which Thinfinity® VirtualUI™ for FireMonkey® SDK will work. The connect method is the method that creates the application and positions it on the structure you have configured (div, iFrame, Window).
a. Substitute the 'Thinfinity® VirtualUI™ for FireMonkey® server URL' argument, that goes inside the GetWebFMX method, with the Thinfinity® VirtualUI™ for FireMonkey® protocol + IP + Port following this format example https://127.0.0.1:8443.
b. Substitute the second argument with the mode you want the connection to be established:
c. Find out the next sub-topic ('Connect method') how you should complete the arguments that go within the connect method.
6. Code special behaviours on the available Thinfinity® VirtualUI™ for FireMonkey® SDK events.
7. Use the Authentication Scheme to ensure the usernames and passwords security.
|