Click here to Skip to main content
12,952,281 members (44,493 online)
Rate this:
 
Please Sign up or sign in to vote.
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 18: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
Top Experts
Last 24hrsThis month
OriginalGriff 6,289
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,900


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 21 Jan 2013
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