Click here to Skip to main content
13,054,615 members (59,441 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
PBGuy1.8K
Updated 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 7-Nov-12 7:20am
   
thank u
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
shabari7 7-Nov-12 7:20am
   
thank u
jim lahey 7-Nov-12 7:22am
   
If it helped you can always mark it as the answer or rate it
shabari7 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100