SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    display page in iframe without scroller

    Hi everyone, I met one problem about IFRAME:

    I need to use this phrase: <IFRAME name="frmain" src="home.php" width="100%" height="XXX" scrolling="no" frameborder="0"></IFRAME>
    It is required there should not be any scroller in the frame border. But I do not know the height of the page in advance. How can I get the height of the page in frame and put it after 'height=' attribute. Is there anyone who know how to solve this problem? Thanks a lot.

    PS, I once tried to use javascript or php, but I did not figure it out.

    Thanks

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    Probably your only solution would be javascript if you want a variable height.
    What have you tried in the past that didn't work?

    Welcome to the forums btw!

    Cheers

    Spike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Enthusiast myinnet's Avatar
    Join Date
    Jul 2006
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it very hard, unless you know how many content in your "home.php" page.


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
  •