|
||||
|
|
Managing Flash Applications in Citrix EnvironmentsThis article was written based on some research I completed in relation to the delivery of a Flash application over Citrix for a financial institution. The financial institution has developed a prototype of a new sales tool that was completed before the Citrix Proof of Concept (PoC) project. This was tested within a Citrix (ICA) session during the test phase of the PoC. Whilst the application worked reasonably well when connected at LAN speed, when tested from a Branch over the WAN, the animated parts were visually poor and unacceptable. All web applications can detect the browser they are running on by the userAgent property of the navigator object of JavaScript. An example of a User-Agent header that a browser sends is:
We can add a value to this string, such as “Citrix”, by adding a new string value to the following registry key on the Citrix servers:
The string value should not contain any data. Note: After creating this value the browser needs to be restarted to initialise the new string. Now the browser will send the following User-Agent header:
So a web developer would simply just need to add code to search this string for the word Citrix and can then run different procedures/routines to basically slow down, dumb down, or completely remove animation. You can then go one step further and test for the Presentation Server version number. We would do this because as Citrix advances in technology, the ability to run Flash within an ICA session will only improve, so it would be wiser to code your web applications to allow for this from the start. Therefore, you would set the appropriate version in the registry so that the browser will also contain the Presentation Server version number in the User-Agent header: For Example:
To test this theory, copy the following code (watch out for any word wrap) to a blank html document and then open it in the browser:
For this concept to work, nothing other than a registry value needs to be set on the Citrix servers, which provides ease of management/maintenance and a centralised configuration mechansim for the Flash application. Select here to display the user agent header for your browser in a new browser window. Alternatively, by pressing the following button, a Javascript function will be called. The function will display an alert message which contains information about the user agent header for your browser. So in conclusion, a Flash solution over Citrix can still work. The business and project sponsors need to decide on the importance of the animation, and with the assistance from the string returned by the User-Agent header; the developers can manage this accordingly. This will leave the Flash application to be run as designed on customer facing Internet kiosk terminals.
|
|||
| © Copyright J House Consulting 2007 | 9th April 2007 | |||