473,387 Members | 1,520 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,387 software developers and data experts.

[beginner]how to set a iframe's size to let it won't show thescroller ?

HI:
I have a page contain anthoer site's iframe window, but the iframe
window ' document is large, so the scroller shows in the iframe
window.
I decide to caculate the iframe document's true size and set the
iframe 's height and width according the document's true size , how
can I do this? by scrollMaxY of the iframe ?

Thanks.
Aug 14 '08 #1
5 1720
Have you thought of making the document in your iframe have the same
width and height as the iframe, and then use CSS and set overflow to
hidden?

Neil Roberts <a href="http://ajaxexample.net">Ajax Example</a>

On Aug 13, 10:35 pm, devdoer <devdo...@gmail.comwrote:
HI:
I have a page contain anthoer site's iframe window, but the iframe
window ' document is large, so the scroller shows in the iframe
window.
I decide to caculate the iframe document's true size and set the
iframe 's height and width according the document's true size , how
can I do this? by scrollMaxY of the iframe ?

Thanks.
Aug 14 '08 #2
aj*********@gmail.com wrote:
Have you thought of making the document in your iframe have the same
width and height as the iframe, and then use CSS and set overflow to
hidden?
AIUI the OP is not in control over the document in the iframe,
which is what makes their iframe approach a really bad idea.
[Top post, advertised site without proper delimiter]
Please learn to quote and stop spamming.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Aug 15 '08 #3
On 8ÔÂ15ÈÕ, ÉÏÎç12ʱ08·Ö, ajaxexam...@gmail.com wrote:
Have you thought of making the document in your iframe have the same
width and height as the iframe, and then use CSS and set overflow to
hidden?

Neil Roberts <a href="http://ajaxexample.net">Ajax Example</a>

On Aug 13, 10:35 pm, devdoer <devdo...@gmail.comwrote:
HI:
I have a page contain anthoer site's iframe window, but the iframe
window ' document is large, so the scroller shows in the iframe
window.
I decide to caculate the iframe document's true size and set the
iframe 's height and width according the document's true size , how
can I do this? by scrollMaxY of the iframe ?
Thanks.- Òþ²Ø±»ÒýÓÃÎÄ×Ö -

- ÏÔʾÒýÓõÄÎÄ×Ö -
No.The iframe's document is not controlled by me.It's other web-site's
page. I want to know how can I calculate the height of the document of
the iframe, so I can set the iframe size to contain the whole
documdent without showing the scroller bar of the iframe,otherwise
there may be two scroller bar's in my page ,one is my page's ,the
other is the iframe's .
Aug 15 '08 #4
SAM
devdoer a ¨¦crit :
>
No.The iframe's document is not controlled by me.It's other web-site's
so you can do nothing with this document (page, file) with JavaScript
(no cross domain allowed)
page. I want to know how can I calculate the height of the document of
the iframe, so I can set the iframe size to contain the whole
documdent without showing the scroller bar of the iframe,
anyway it is a bad idea :-(
otherwise there may be two scroller bar's in my page
do not understand where is the problem

--
sm
Aug 15 '08 #5
On Aug 15, 12:08 pm, devdoer <devdo...@gmail.comwrote:
On 8ÔÂ15ÈÕ, ÉÏÎç12ʱ08·Ö, ajaxexam...@gmail.com wrote:
Have you thought of making the document in your iframe have the same
width and height as the iframe, and then use CSS and set overflow to
hidden?
Neil Roberts <a href="http://ajaxexample.net">Ajax Example</a>
On Aug 13, 10:35 pm, devdoer <devdo...@gmail.comwrote:
HI:
I have a page contain anthoer site's iframe window, but the iframe
window ' document is large, so the scroller shows in the iframe
window.
I decide to caculate the iframe document's true size and set the
iframe 's height and width according the document's true size , how
can I do this? by scrollMaxY of the iframe ?
Thanks.- Òþ²Ø±»ÒýÓÃÎÄ×Ö -
- ÏÔʾÒýÓõÄÎÄ×Ö -

No.The iframe's document is not controlled by me.It's other web-site's
page. I want to know how can I calculate the height of the document of
the iframe, so I can set the iframe size to contain the whole
documdent without showing the scroller bar of the iframe,otherwise
there may be two scroller bar's in my page ,one is my page's ,the
other is the iframe's .
But you can nest your own document that can contain an overflow:
hidden node that can contain their iframe. Of you can use JavaScript
to write this into an iframe if speed is important.

Bill Robbins
http://ajaxexample.net
Aug 16 '08 #6

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

Similar topics

5
by: Harry Haller | last post by:
<select name="cboPlaces" id="cboPlaces"> <option value="3">Countryside</option> <option value="4">Forest</option> <option value="5">Mountain</option> <option value="6">Desert</option> <option...
10
by: Madame Blablavatsky | last post by:
hello, i have a few links on a page. when one clicks a link an pop up window with an image opens. when people click an other link i want the already availible pop up window to close before the...
3
by: Dan Hicks | last post by:
Hi, I wrote this test code as part of a module I created for the Northwind database. However, I was only using this as a test platform. My goal was to write a program that would take records...
7
by: Dave | last post by:
I have a button on Form1 that hides the form and displays Form2: Form2 myForm2 = new Form2(); myForm2.Show(); this.Hide(); After I do some work in Form2 I want to close it and redisplay...
4
by: nescio | last post by:
hello, i am building a function that checks whether a entered number is a valed number. this works fine, but there is a small problem: - when there is an empty space in the number or when...
2
by: Arvin Portlock | last post by:
My SQL experience is pretty limited, sorry if this is a REALLY basic question. I have a database of bibliographic records. Each record is of a certain type as recorded in a Type field: books,...
4
by: clairelee0322 | last post by:
Hello guys again! I am a C++ beginner and I am working on another project.. It's called Dice Lab with Loops.. unforunately I don't even know how to start the program.... Don't blame me for not pay...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.