Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET UI
How to resize the iframe height on cient event when it is open???
 

I have a anchor tag,on clicking the anchor tag , the iframe in modal pop up should reszize. the anchor tag is in the iframe itself...
 

any suggestion is appreciated.
Posted 7-Nov-12 0:17am
Edited 7-Nov-12 0:21am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Resize your Modal popup Height instead of iframe. The iframe automatically will
adjust in it. You can get the modal pop up object at client side by the iframe object as
 
iframe1.contentWindow.document.getElementById('modalpopupid').style.height='100px';
  Permalink  
v2
Comments
shabari7 at 7-Nov-12 7:20am
   
thank u
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

See the following discussion on StackOverflow:
 
http://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content[^]
  Permalink  
Comments
shabari7 at 7-Nov-12 7:20am
   
thank u
jim lahey at 7-Nov-12 7:22am
   
If it helped you can always mark it as the answer or rate it
shabari7 at 7-Nov-12 7:33am
   
ohhh.k

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid