Solved

Accessing data from an IFRAME in Flex

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

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

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

Suggested Solutions

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…
The goal of this blog is: - To define the incident management process - To go over the key elements of an incident management system - To look into incident alert management tools that integrate with ConnectWise.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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