Call a function from a html-page which is inside an Animate animation
Hi - i need some help.
I have a HTML-Page (a) with four buttons in it. By clicking one of this buttons a function "callNL(value)" will called which is within this page (a) - this works.
On the same HTML-Page (a) i have an iframe with the id "ifr_unten". In this iframe a HTML-Page (b) is running. This page (b) contains my Animate animation. In this animation there is a dynamic textfield, which should show some text if i click one of the buttons of page (a). To show the text there is a function "changeLanguage(value)" which i want to call via the function "callNL(value)" from page (a).
On page (a) i use
var iframe = document.getElementById("ifr_unten");to get access to the page which is running in the iframe. The result is: [object HTMLiFrameElement]
To call the function within the animation i use then
var iframeDocument = iframe.contentDocument;
iframeDocument.defaultView.changeLanguage(indx);But as result i get always NULL.
What to do? Can someone please help me.
