473,842 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing variables from iFrame to actionscipt

3 New Member
I want to send a variable from an iframe within a parent page to a swf on the parent page. The following code works:
window.document .myflash.SetVar iable('variable ','value')
(my flash is the name and id of my flash object)
But if i put(into my frame)
parent.document .myflash.SetVar iable('variable ','value')
parent.myflash. SetVariable('va riable','value' )
top.document.my flash.SetVariab le('variable',' value')
top.myflash.Set Variable('varia ble','value')
The variable does not get passed.

Any support will be appreciated
Jul 20 '07 #1
4 2837
1,044 Recognized Expert Top Contributor
Iframes are automatically considered external content. You don't have full access to it.
Jul 21 '07 #2
3 New Member
iv also tried to pass a variable from the frame to the parent and then put an if then statement to control the flahs from the parent but for some reason the variable does not get passed.
Jul 22 '07 #3
1,044 Recognized Expert Top Contributor
Does the variable ever get passed to the parent?
Jul 22 '07 #4
3 New Member
no, it does not. I think its because the page in the iFrame is changing dynamically. See I have a couple of pages that go into the iFrame. The page that is in the iFrame is controled by the flash object in the parent document. I want each page that loads to send a variable to the flash document, dynamically because the parent page stays constant.
Jul 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

by: John MacIntyre | last post by:
Hi, I have a page with a series of child pages loaded into an iframe. When I move from page to page, I store an object containing the child's control data in a variable on the main page, then use that data to populate the controls when the child page is opened again. One of these objects contains an Array, and the page reloads fine using myArray, myArray, etc... But when I try perform some array methods on it (i.e.slice) ... it does...
by: Jim | last post by:
I want to pass a value from the parent to the iframe when I click a button, the parent will reload and the iframe should show the data I need... when the iframe loads I want it to run something in asp based on the value I send it..how can I go about doing this? thanks -Jim
by: Dave Hammond | last post by:
In document "A.html" I have defined a function and within the document body have included an IFRAME element who's source is document "B.html". In document "B.html" I am trying to call the function defined in "A.html", but every attempt results in an "is not a function" error. I have tried to invoke the function using parent.document.funcname(), top.document.funcname(), and various other identifying methods, but all result in the above...
by: Van Steenbergen Jan | last post by:
We have a asp.net application that holds data in session variables(items). The admin page of the application has a iframe. In this iframe we load different pages(.aspx) . The pages resides in the same application!! In the main page(page with iframe) we load data from a database in sessions variables(type dataset). From the pages in the iframe we try to read data from the correct session variable. This works fine on a local IIS but as...
by: John | last post by:
Hi all, I had an .aspx page which would be opened modally from a previous page and just prior to the parent opening the aspx page, a javascript would run and pass parameters like mypage.aspx?parm1=a&parm2=b. I would then access the parameters in my code-behind as simple request variables and everything worked fine. I now have to open an .htm file first and inside this htm file is an iframe containing the previous-mentioned page. I...
by: docebrown | last post by:
Yes In know this has been covered in other ways, but after searching the forum I did not find a specific solution that fit my application. Maybe I overlooked something, so I'm sory if I did. Here's what I have got. It's very simple (or at least should be). I have a page on my site that has a URL of: http://mysite.come/page.php?gid=1 And in that page I have an iframe that calls for the gid variable like this: <iframe...
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This works real good. Since I don't need the aspx page to do any postback, is there a way to pass a parameter to it with out it finishing the round trip back to the htm page? Thanks. -- moondaddy@newsgroup.nospam
by: bnashenas1984 | last post by:
Hi I have a form which sends some variables. but i need to have an IFRAME inside this form which has its own variables. My question is if i can get this IFRAM's variables into my main page ( parent ) here is the first file 1.php <form action="1.php" method="post">
by: mkhines | last post by:
I'm having trouble figuring out the proper way to pass this variable in with javascript alone. I'm not used to not being able to use jsp and all the love that is in that. Obviously I know little about javascript! So you get the whole story, the user will begin on a page which has an iframe in it that picks up a parameter http://wildlifedisease.nbii.gov/ecoregions/theirpage.html
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.