Solved

Accessing data from an IFRAME in Flex

Posted on 2008-06-17
2
455 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now