Forum Discussion
2 way communication between content in an IFrame and Storyline
what's your problem with interaction between a storyline couse and the embeded webobject?
Hi Jürgen
Thanks for responding. Sorry, this answer may be a bit long winded, but I want to ensure that the issue is clearly understood.
Firstly, I should state that I am not a programmer, so can't code off my own back. Where I have succeeded in using JavaScript, it has been by 'magpie-ing' other people's code and then trying to make sense of it and then, if need be, modifying it to my needs.
The issue I have is that I cannot find a clear and easy to follow explanation of what I am trying to achieve and hence cannot find a solution to my issue which is as follows:
In brief, I want a student to complete an interactive emulation, built in SL3, that is embedded as a web object in to a main training package, also build in SL3 and, on completion of the interactive emulation, for the state of a 'Continue' button in the main training package to change state from Hidden to Normal (that bit being easy once I have the variables I need in Storyline). The issue is communication between the embedded web object emulation, which I will now refer to as 'Daughter' and the main training package, which I will refer to as 'Mother, how to achieve this communication between 'Daughter' and 'Mother' and how to ensure it isn't blocked by security protocols inside current browsers.
To elaborate further, the 'Mother' project I am currently working on is (a) quite large and complex and (b) has multiple different 'Daughter' interactive emulations to demonstrate the different operational modes of the equipment. Both the 'Mother' and embedded web object 'Daughter' projects are of different aspect ratio, so I can't just import the emulations into the 'Mother' project, as it would require each 'Daughter' emulation to be modified to fit the new aspect ratio. This would entail a lot of hours and make the 'Mother' project very large indeed, possibly to the point where I may have issues with the 4GB ram limit of the 32 bit SL3 software. It is a requirement that the student cannot continue with 'Mother' until they have successfully completed the 'Daughter' emulation. All parts work in isolation without issue. However, it is this requirement that the student is required to complete each 'Daughter', that is causing the issue.
I understand that there should be a way to code in JavaScript when a 'Daughter' has been completed and then, since it is a web object, to have a JavaScript 'listen' device within the 'Mother' project on the slide in which the 'Daughter' is embed, so that when the 'Daughter' has been completed, the 'Mother' would then be notified, causing the state of the 'Continue' button to change from Hidden to Normal. But despite a lot of research, I have been unable to find a set of instructions I can follow easily, without having to be an expert in JavaScript.
Sorry this has been so long winded, but I understand the resolution should be relatively easy, if you understand and can code efficiently in JavaScript which, unfortunately, I can't.
Hopefully, my explanation has made sense, but please feel free to ask for any additional information. Unfortunately, I can't share any part of the project as it is 'Client Sensitive' and is not for release in the public domain.I appreciate any help that you may be able to give in this issue and thank you in advance.
Best regards