Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartediFrame height/ajax issuesiFrame height/ajax issues
Previous
 
Next
New Post
2/1/2012 3:18 PM
 

Hello,

I'm fairly new to DNN and I have been mainting a .NET site for a couple years here. We recently converted most of the site to DNN, but a few of the pages use an iFrame and point to our legacy app (same domain and physical site, just a virtual directory).

The problem I'm having is the legacy app in the iFrame redirects to a few different pages as part of a 3 step process. Some of the pages are long, so if you're at the bottom of the page in step one, and you submit, it stays at the bottom of page two. This used to be a non-issue but recently the page inside the iFrame had an UpdatePanel added. Now of course the javascript to auto-adjust the height broke, along with this scrolling issue showing up. Do I have any possible way from the iFrame page to tell the parent page to scroll up? I've tried various .scrollTo() workarounds but none seem to help.

I looked for the best forum section to place this, so I apologize if it is not in the correct spot.

Thanks for any help you can provide.

 
New Post
3/7/2012 10:51 AM
 
stumbled upon this post searching something else. If you haven't solved it yet you can let your page and the iframe talk to each other in both directions by using HTML5's postMessage.
basically you setup an eventhanlder function for receiving the message on your main page.
You load the destination page in the iframe, and make the destination page postMessage the mainpage with the required height, the eventhandler will catch it and can adjust the iframe height.

Checkout: https://developer.mozilla.org/en/DOM/window.postMessage
http://delfeld.wordpress.com/2010/10/12/resize-iframe-to-content/
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartediFrame height/ajax issuesiFrame height/ajax issues


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out