473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Resize Iframe width on change of gridview width

We have a non asp web page that contains a hyperlink which opens an
iframe. The iframe is hidden until the hyperlink is selected then
javascript toggles the visibility to 'visible'. Inside the iframe is
our aspx page which contains a gridview. I've manually set the iframe
width to larger than the gridview will ever be and have
allowtransparency set to 'true' so you really can't see the iframe,
just the gridview.

As gridview paging and sorting occur the gridviews width changes and
I'm trying to change the iframe width to match. I'm having all kinds
of trouble as I can't figure out the gridview width either with
Javascript or in the C# codefile or how to pass that width to the
parent iframe. Can someone please give me some assistance.

Regards,
gary

Jan 9 '07 #1
1 4123
What if you just set the iframe width to 100%? What is the container for the
iframe?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
<ga***********@gmail.comwrote in message
news:11*********************@p59g2000hsd.googlegro ups.com...
We have a non asp web page that contains a hyperlink which opens an
iframe. The iframe is hidden until the hyperlink is selected then
javascript toggles the visibility to 'visible'. Inside the iframe is
our aspx page which contains a gridview. I've manually set the iframe
width to larger than the gridview will ever be and have
allowtransparency set to 'true' so you really can't see the iframe,
just the gridview.

As gridview paging and sorting occur the gridviews width changes and
I'm trying to change the iframe width to match. I'm having all kinds
of trouble as I can't figure out the gridview width either with
Javascript or in the C# codefile or how to pass that width to the
parent iframe. Can someone please give me some assistance.

Regards,
gary

Jan 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: H.A.P | last post by:
hi I'm trying to change the size of an iframe. In the following page, how should I do it? <html> <head> <script language="javascript"> function resize_frm() {
2
by: DaveO | last post by:
OK. Now I'm all googled out and still puzzled ! I admit I am very new to javascript, but think that it is the only solution to this. I have a web page with a table ( 2 columns, 1 row ) The...
2
by: Alex Blekhman | last post by:
Hello, I'm experienced Windows programmer, however, I'm quite novice in HTML technologies. Recently I was assigned a task to write small utility for internal use in our development team. I...
2
by: wolfing1 | last post by:
Maybe this doesn't make any sense, but is it possible to dynamically resize an iframe to the height of its contained page? Something that works in Opera/Firefox/IE. I can resize it with a...
0
by: gary.comstock | last post by:
We have a non asp web page that contains a hyperlink which opens an iframe. The iframe is hidden until the hyperlink is selected then javascript toggles the visibility to 'visible'. Inside the...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
2
by: mvmashraf | last post by:
How can I make an IFRAME resize itself when someone changes their resolution? I have a table in that i am loading that iframe, I did give the width of Iframe and the width of table as 100%, What...
3
by: Jills | last post by:
Hi All, Does anyone have any idea about how can we resize an IFRAME dynamically according to its content from another domain? I want to increase the height according to the page that is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.