Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript CSS
Hi,
 
have a requirement that to fit the iframe width to fit window,so that only browser window scrollbar should appear.(iframe scrollbars should not appaear)
 
have used iframe property scrolling="no",but the iframe has gridview which has large data,if i use the scrolling property the data that appears in gridview gets clipped.
 
aftergoogling have found autoresize script inspite of using that code it didn't work out.
 
please help and suggest sollution for this.
 
thanks in advance.
Posted 20-Jan-13 19:02pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

try the below link. it shows a simple jquery that you can copy and paste
and it would resize the iframe.
http://webdevrefinery.com/forums/topic/8300-dynamically-resizing-an-iframe-to-fit-within-the-browser-window/[^]
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 165
2 PIEBALDconsult 150
3 BillWoodruff 148
4 DamithSL 140
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2014
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