Log in

View Full Version : Another Iframe help



deandre81
11-11-2006, 06:41 AM
Hi,
i see alot going on about iframes and frames etc
I've also learned a few by using the search.

But my problem is that i have a website i'm working on and i'm doing a video page.

I have the main page with the flv player loaded in a table but i want to have the video listings at the bottom of that table with the video.

I was able to get that done.
But, i used an Iframe to accomplish that and i want that my listing of video to be able to play in the main page that has the player, though the actual code to load the video is in an Iframe listed on another .html page

Let me show you the live link for example, look at it and see.

http://www.dadli-scene.com/video2/
:o

Thanks

jscheuer1
11-11-2006, 07:12 AM
Generally, if you are accessing something on the parent page from a script inside one of its frames or iframes, all you need to do is preface the object with parent. :


document.getElementById('vid_area')

becomes:


parent.document.getElementById('vid_area')

deandre81
11-11-2006, 07:46 AM
Hey, thanks for the reply.
the thing is, i didn't actually write the the code for that section.
I got it from another site when i was researching and thought i'd try it out.
cause i tried the lil code you gave and i didnt get it to work. maybe i out it in the wrong place or something.
Let me post the direct link to the Iframe page itself so you can see what crap i have
http://www.dadli-scene.com/video2/videolist1.htm
as far as i see, this thing needs to be re-written or something so that when i click on play, it play that selected video in the parent document.

Thanks again

deandre81
11-11-2006, 03:28 PM
Hey, i was able to figure it out
i did

javascript:parent.playMovie ('vid_area') and it works
thanks again
guess i was too lazy to figure it out earlier bot now i did and thanks to you for that short code