Link to home
Start Free TrialLog in
Avatar of dancablam
dancablam

asked on

Accessing data from an IFRAME in Flex

I have a page that has a Flex swf inside an iframe. In the main page I have hidden input fields that contain values. How can I retrieve the values inside the hidden input fields in Flex when Flex is inside an iframe?

Thanks,
Dan
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dancablam
dancablam

ASKER

I was able to get access to the parent frame by using the ExternalInterface and calling a function like:
<script language="JavaScript">
function getTestVal() {
	return parent.document.getElementById('test').value;
}
</script>

Open in new window