Using HTML templates to host an EGL Rich UI application
ChrisLaffra 060000KCEQ Comment (1) Visits (2142)
I bet you all know James Brown's classic:
Now, the same is true for EGL Rich UI. Of course we expect you to write all your rich internet applications and mashups in Rich UI. It is the most superior language and tool to do that. However, such Rich UI applications only form one part of the solution. They will be hosted by corporate websites that are based on HTML and CSS, and those are controlled by the webmasters in your organization. At best you will get a portion in a specific page, and you will have to conform to global CSS style sheets and HTML templates.
The outside-in approach works as follows. Assume we have an HTML template looking like this:
I attached the HTML template for your reference.
The obvious intention is to replace the blue box with our Rich UI handler so that it looks like this:
To obtain that result, we include the HTML template in our Rich UI handler. In the construction function locate the div to insert ourselves into and replace its children with the RUI handler:
The inside-out approach involves the use of iframes. I will add that recipe soon.