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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:32:56+00:00 2026-06-04T17:32:56+00:00

I have a form which runs inside an Iframe and uses the excellent postmessage

  • 0

I have a form which runs inside an Iframe and uses the excellent postmessage plugin to allow the height of the iframe to be dynamically set within the parent page. This is working very well and on page load the outerHeight of the body of the iframe document is used to set the height of the iframe. When the form within the iframe is validated however, the error messages displayed cause the height of the form to change and I need to react to this event. I have tried using the invalid callback in the plugin however it seems that this fires before the error messages have been displayed and as such reports no change in height.

The form is built using ASP.net MVC with all validation being set using datamodel annotations

I can’t see another option in the documentation, is there another event I can use? Or is there a way to monitor for DOM changes made by JQuery for example?

  • 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-06-04T17:32:58+00:00Added an answer on June 4, 2026 at 5:32 pm

    I solved this by monitoring the DOM for changes using the following plugin: https://gist.github.com/378546

    All that is needed is to attach the event to the body e.g.:

    $('body').bind('domchanged', function () {
        //code to execute when domchanges
    });
    

    It’s worth noting that this will fire for every error message displayed so will be called multiple times if there are multiple errors.

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

Sidebar

Related Questions

I have a windows-form which runs without any problem and displayed well. But if
I have a form which is dynamically generated based on user input. Initially the
I have a form which I am validating through the jQuery Validate plugin. Everything
I have a form inside an iframe that needs to be manipulated from the
I have an app which uses an engine. I generated a cell inside this
Let's say that I have a form which runs a stored procedure. This stored
I have a form in html which runs a php script whitch inserts text
I have a form which has a collection for manager which is an autocomplete
I have a form which I wish to be be represented graphically elsewhere on
I have a form which has a ListView and buttons to add/edit/delete items from

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.