Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  Feature Request -- IFrame Auto Resizing
Previous Previous
 
Next Next
New Post 6/24/2006 12:41 PM
User is offline Jim Terry
2 posts
10th Ranked


Feature Request -- IFrame Auto Resizing 
Feature request: auto-resize support for the IFrame module's Width/Height.

First, I have been doing this successfully by using the trick mentioned here:
http://forums.asp.net/580096/ShowPost.aspx

However, after upgrading to 4.3.1, it is broken.

For example, I set the IFrame Height textbox to:
600" id="myframe" name="myframe" onload="stretchIFrame('myframe','600')

And in DNN 4.3.1 (or is it due to just the module upgrade in 4.3.1?) it results in the rendered output to the page as:
height="600" id="myframe" name="myframe" onload="stretchIFrame('myframe','600')"

I still need to track down the code that's translating " to "

---

But back to the feature request. Even though auto-resizing is limited to a site's domain, it is still very useful. Also, a lot of people seem to ask about this capability.

At minimum, this feature could be supported by simply providing another field where we can inject attributes/code (as above) which won't be modified.

Right now, it's a true hack. And like most good hacks, it has come back to bite ;)

Jim

 
New Post 10/4/2006 3:13 PM
User is offline Snarfy
2 posts
10th Ranked


Re: Feature Request -- IFrame Auto Resizing 
I actually just popped onto the forums to look for a hack for this... It seems I just installed the same version =\ lol... I'll give the hack a try and see if it works anyway. But I second this motion - ftr!
 
New Post 10/5/2006 12:40 PM
User is offline df dsf
1 posts
10th Ranked


Re: Feature Request -- IFrame Auto Resizing 
i have the same problem after the upgrade... anyone here have a fix?
 
New Post 12/11/2006 1:22 PM
User is offline Stefan Cullmann
1486 posts
6th Ranked








Re: Feature Request -- IFrame Auto Resizing 
Added to gemini: http://support.dotnetnuke.com/Default.aspx?p=19&i=4620

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

Need to import external data to a UDT? Try http://www.codeplex.com/Csv2UDTImport

 
New Post 3/14/2007 5:31 PM
User is offline Tonester
2 posts
10th Ranked


Re: Feature Request -- IFrame Auto Resizing 

After much experimentation I have managed to get auto-resizing working but whether or not it is due to new features within DNN4.4.1 I am not sure.  I needed resizing because I have a HTML master page with two HTML iframes with the left hand iframe containing a menu (a mapped image actually) which changes the contents of the right hand iframe. When opened directly within a browser the master page is resized correctly as the righthand frame resizes itself when its content is changed.

I accomplished it using the following three steps:

1. I created a Javascript Library file (Resizer.js) containing the following function:

// -----------------------------------------------------------------------------------------

function resizeIframe(frameName) {
 
try {
   
var body = window.frames[frameName].document.body; 
   
if(body) {
     
var ifrm = document.getElementById(frameName);
     
if (ifrm) {
       
ifrm.style.height = (body.scrollHeight || body.offsetHeight) + 20 +
'px';
      }
   
}
 
}
 
catch (e) {
   
// Ignore this for now
 
}
}
// ---------------------------------------------------------------------------------------

2. I uploaded this js file to a folder under the portal in which I wished to use it.

3. In DNN I navigated to the page on which I wished to place the resizeable IFrame module.  I then changed the page settings so that the Page Header Tags field contained the following:

<

script type="text/javascript" src="/Portals/1/Library/Resizer.js"></script>

4. I then added the resizeable IFrame and set the URL to the page that I wished display by editing the IFrame options accordingly.  I also set the Name of the frame to masterFrame, and then in the OnLoad field entered this:

resizeIframe('masterFrame');setInterval('resizeIframe(\'masterFrame\')', 500);

5. And then it all works as desired.

To have a look for yourself please check out http://sit.tullemans.net/Process/WebDevelopmentProcess/tabid/71/Default.aspx.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  Feature Request -- IFrame Auto Resizing
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP