Results 1 to 4 of 4

Thread: Another Iframe help

  1. #1
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Another Iframe help

    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/


    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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. :

    Code:
    document.getElementById('vid_area')
    becomes:

    Code:
    parent.document.getElementById('vid_area')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey, i was able to figure it out
    i did
    Code:
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •