Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    523
    Thanks
    26
    Thanked 0 Times in 0 Posts

    Unhappy :: control parent iframe from child

    hi all, im trying to control the height of an iframe from inside the child page. the idea is to get the height of the content (container) then resize the iframe to that height. for some reason im having trouble accessing the iframe.

    function setiframeheight(what1,what2){ // for setting an iframe's height
    var i = document.getElementById('container') ;
    var c = parent.frames['iframer'];
    c.style.width = i;
    }

    any help appreciated
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    523
    Thanks
    26
    Thanked 0 Times in 0 Posts
    any ideas peeps?
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson


  •  

    Posting Permissions

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