NIPO ODIN Version 5.17Example Using Adobe Flash in NIPO CAWI and NIPO CAPIThis section describes how to display Adobe Flash content and capture its output in the data of a NIPO ODIN questionnaire in NIPO CAPI and NIPO CAWI. The basic idea to transfer information between the Flash application and the ODIN script is to make use of JavaScript on the pages. The Flash application should be created in a way that it at the end of the user interaction makes a call to a predefined JavaScript function with the resulting values of the Flash application. The JavaScript function receives these values and will pass them to the corresponding fields generated by the NIPO ODIN questionnaire. The JavaScript functions and the Flash application can be included in the NIPO ODIN template for the specific question where the Flash application is used. The NIPO ODIN question can be designed as a Depending on the type of data to send from Flash to the JavaScript function, it may be necessary to explicitly format the data as an array in Flash (instead of passing a string) to make sure JavaScript also recognizes the data as an array. This section provides an example on how JavaScript may be used to create the link between the Flash application and the HTML generated by the NIPO ODIN script. It does not explain how the actual Flash application should be created. |
|||
|