Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and Iframes 1

Status
Not open for further replies.

jammer1221

Programmer
Jul 30, 2003
352
US
Hey All,

I have have an iframe in one of my pages and this iframe has some flash embedded on the page. The flash is turned into an object so eventually I can control playback.

I've been trying and trying and I can't figure out how to access this object from outside the iframe.

This is what I thought would have worked:
Code:
document.getElementById("iframe").document.mySwf//=flash object
But it says mySwf is null or not an object. FYI, I can access mySwf from inside of the iframe.

Any ideas or tips would be very much appreciated!

Thanks,
Matt
 
Is the document in the iframe on the same domain as the document that contains the iframe? If not, you'll have a hard time.

If it is, do a search on Google for something like "accessing iframe document" - I had a similar problem a while back, and found the answer fairly quickly.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top