?
Solved

Accessing data from an IFRAME in Flex

Posted on 2008-06-17
2
Medium Priority
?
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

752 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