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 3305014
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:07:22+00:00 2026-05-17T21:07:22+00:00

Window -> IFRAME -> DIV I have a window, that has an iframe, that

  • 0

Window -> IFRAME -> DIV

I have a window, that has an iframe, that has a div. The div has the ability to scroll the content within but not having full control of the parent window, I have to decide how large the div needs to be from within the iframe.

To do this, I have the following code JavaScript (please pardon the mix of jQuery/straight JavaScript):

    $(window.parent).resize(function () {
        var frameHeight = parent.document.getElementById('IFRAME_banner').offsetHeight - 52;
        $("div.ajax__tab_body").height(frameHeight);
    });

This code works fine as long as you resize the window by dragging one of the corners. If you vertically resize by dragging the bottom of the window, it does not fire this event and the div does not properly resize.

I use the iframe as a reference since it seems to automagically resize itself because of something the parent window does. (This is all in MS CRM Dyanamics…so who knows what is happening behind the scenes)

Does anyone know why this would be? And what I would have to do to work around this?

Hackish is ok in this instance. The whole thing is a big hack.

  • 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-17T21:07:22+00:00Added an answer on May 17, 2026 at 9:07 pm

    Hack answer: You could create a timer that fires once every second or so and checks the dimensions. If they aren’t what you expect, call the event function manually.

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

Sidebar

Related Questions

I have a div that contains an iFrame and I want to ensure that
I have one div with position:fixed 0 ; that stays on the top of
I have <iframe src=correctdata.php frameborder=0 width=100% height=330 id=correctdata></iframe> <div class=floatright><a class=button bigger onclick=window.frames['correctdata'].document.form['correct'].submit();>Submit</a></div> And
I'm trying to update the innerHTML of a div tag that's within the parent
My web site has a common horizontal menu and I'd like to put this
Although new to silverlight, I have produced a clickable map. [Note: it is better
I'm opening an iframe(inside a pop up) from a page(say parent) and trying to
I recently ran into some troubles using JQuery Draggable and Resizable plugins. Looking for
Is it possible to get the current URL of an external page loaded in

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.