Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3932020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:24:38+00:00 2026-05-19T23:24:38+00:00

I have built a page which has an iframe in it. I also have

  • 0

I have built a page which has an iframe in it. I also have a page header and footer displayed on the page, shown by way of include file statements. The iframe is between the header and footer and is set to display a page not on my website.

The inserted page has hyperlinks on the page which the user can click, and thus the height of the content to be displayed changes.

Is it possible to set up the iframe so that it will auto size the frame window page to the size of the inserted page to be displayed, if it changes. I have currently had to set the height of the iframe very large so that it will display the biggest page of content that the user can display using the frame (800). The only problem with this is that most pages to be shown in the frame are only small, so for the most part users dont get to see the page footer.

One last point, I dont want to use a scroll bar to achieve the above.

Is it possible to do this, and if so how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:24:39+00:00Added an answer on May 19, 2026 at 11:24 pm

    If the pages are on the same domain, it’s relatively straight forward. If it’s on a different domain, it can’t be done without co-operation from the other sites.

    The problem is that JavaScript is prevented from accessing frames/iframes from other domains. The solution is to have the iframed page create its own hidden iframe. The iframed page loads into its hidden iframe a specially crafted URL pointing to a page back on the original server. This hidden page detects the specially crafted URL, and parses it for data, such as the size of the iframe. Because this hidden iframe is on the same domain as the main page, it can access JavaScript in the main page by going parent.parent.thing.

    For more information, google cross-domain iframe communication.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built an completely AJAX based application which has no page refresh and
I have built a web page which contains a Crystal Report built using the
I have a site (built on LAMP (cakephp) and has ssl certificate installed) which
I have a devexpress gridview within my asp.net page which has a filter row.
Does C# have built-in support for parsing strings of page numbers? By page numbers,
I have a page with a large iframe that contains a majority of the
I have built a custom control that has a small amount of JavaScript. The
I have a database which has almost 300 tables, I've just come across with
I have a login.jsp page which contains a login form. Once logged in the
I have built a website which uses ajax for most of the sites functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.