I have been building a number of plugins to display simulations, draw maps, display math etc. They all consist of an iframe:
<iframe src="https://s3.amazonaws.com/thinkspace_cases/wx_assets/sims/radsim/index.html" width="800" height="600"></iframe>
For examples, see http://pboysen.github.io/sims/
Many of these save what the student has created in one phase so that the student answer can be shown in a following phase.
I propose we extend the thinkspace tag to support this. Example:
<thinkspace name="field1" type="plug-in" src="https://s3.amazonaws.com/thinkspace_cases/wx_assets/sims/radsim/index.html" width="800" height="600"></thinkspace>
When the tag is displayed, it would be replaced by the iframe code. The plugin would have access to
putAnswer(answer) functions. These functions would get/put the answer stored in field1 and would use the existing code used to get/put student answers.
- the plug-in only has access to the answer scoped to the space/case/phase/student/answer.
- carry_forward is accomplished by using the same tag in another phase