flash_external_data_sources
Differences
This shows you the differences between two versions of the page.
| flash_external_data_sources [2022/09/24 00:05] – created jhagstrand | flash_external_data_sources [2023/01/12 09:11] (current) – removed jhagstrand | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Flash External Sources ====== | ||
| - | External data comes in from these sources: | ||
| - | |||
| - | - onScriptLoaded(subject data) - from pages/*.js | ||
| - | * flash.js switches the page and then passes data to Program object | ||
| - | - onLoadData(data) - from an external windows such as Sanskrit Keyboard | ||
| - | * postMessage: | ||
| - | * flash.js reads the data to generate a new page and then passes data to Program object | ||
| - | - from getCards data service | ||
| - | * directly handled by Program object | ||
| - | - from localStorage | ||
| - | * onstartup | ||
| - | * when previous session is stored in localStorage | ||
| - | |||
| - | Data Portal: \\ | ||
| - | program.loadData(data)\\ | ||
| - | Card(quest) constructor \\ | ||
| - | |||
| - | The incoming data object is external to the closure compiler, | ||
| - | and therefore references to it must use brackets-quoted-string notation. | ||
| - | - We first pass the data object to program.loadData(). | ||
| - | - Here the data is pulled out and loaded into internal objects, and the original external data object is discarded. | ||
| - | - The internal objects are then accessed by dot-notation. | ||
flash_external_data_sources.1663992324.txt.gz · Last modified: 2022/09/24 00:05 by jhagstrand