I am trying to build a breakout learning game for students in with they have to unlock a door with a alphanumeric code. I tried it out and it all works beautifully in the Preview and when uploaded on the Server. But NOT ON IPAD!! Please help me!
The code in my function is:
var iframe = hypeDocument.getElementById('CheckCodeWidget').children[0];
var iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
var getOutCode = iframeDocument.getElementById('getOutCode');
var check = getOutCode.value;
if (check == "abc"){
hypeDocument.showSceneNamed('Out', hypeDocument.kSceneTransitionCrossfade, 1.1);
}
else
{
hypeDocument.showSceneNamed('NotOut', hypeDocument.kSceneTransitionCrossfade, 1.1);
}
after testing a while i am sure that
1.) the function is reached by iPad
2.) everything works until the line
var iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
does anyone know how to get this problem fixed for IOS devices?
Thanks a lot! As a beginner i didn’t know that its possible to insert HTML code into other Elements than widgets.
Thanks for your quick and perfect working solution!
Great!