[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Accessing data from an IFRAME in Flex

Posted on 2008-06-17
2
Medium Priority
?
488 Views
Last Modified: 2012-06-22
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
0
Comment
Question by:dancablam
2 Comments
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 1500 total points
ID: 21809603
if both were in same page you could have use external interface or flash vars to access the data, I am not sure if you can access the data from SWF with in a iframe,

First try doing this accessing the data from main page using javascript with in Iframe later we can try communicating with this javascript function from the flex.
0
 
LVL 3

Author Comment

by:dancablam
ID: 21810906
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

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month18 days, 19 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question