473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to alter iframe size

134 New Member
Hi

i'm using aan iframe to diaplay the search results of public search engines.,

the page includes.,

header
iframe
footer

in the iframe i hav included the search engines result page., but different engines hav diffenent page length.,
Is there any way to automatically fix the page length regarding the search results.,

example
Expand|Select|Wrap|Line Numbers
  1. <?
  2. $qq="php";
  3. $link="http://en.wikipedia.org/wiki/".$qq;
  4. <iframe src="<? echo $link;?>" vspace="0" height="700px" hspace="0" style="overflow:visible; width:99%" scrolling="no"></iframe>
  5. ?>
  6.  
i tried even by not specifying the height but it does'nt get worked., i get two scroll bars.,

so is there any way to display the iframe without the scroll bars by automatically fixing the heights??

help me in this.,

thanks
May 19 '08 #1
3 2421
TheServant
1,168 Recognized Expert Top Contributor
Well if you are displaying someone elses page, you cannot specify their CSS (that I know of). So unless they have their height unset, %, or auto, they will have specified their height (eg. 1000px) and you will not be able to change it.

Maybe you can set your iframe height as "auto"? If that doesn't work, try "100%". I have little experience with frames, but give that a go and let us know if it works.

BTW, I think this is a HTML question rather than PHP.
May 19 '08 #2
Atli
5,058 Recognized Expert Expert
I've moved this thread over to the HTML/CSS forums.
Please try to post your questions in the appropriate forum.
May 19 '08 #3
vjayis
134 New Member
Well if you are displaying someone elses page, you cannot specify their CSS (that I know of). So unless they have their height unset, %, or auto, they will have specified their height (eg. 1000px) and you will not be able to change it.

Maybe you can set your iframe height as "auto"? If that doesn't work, try "100%". I have little experience with frames, but give that a go and let us know if it works.

BTW, I think this is a HTML question rather than PHP.

Hi

already tried by setting the height to 100% and auto., but does'nt get worked.,

and as u said i fixed the height of the iframe with a particular search query., but when a different query is entered the height varies and so that the scroll bar comes in.,

And sorry for posting it in the wrong place.,

thanks
May 19 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Catherine Lynn Smith | last post by:
I want to know the recommended way to handle scripting of/with containers such as an iframe. I have a page with border-navigation bars on the top/bottom/left/right and I want to use an iframe to...
2
by: David Bradbury | last post by:
I currently have an iframe on a webpage into which users can insert content. They can further customise the text as I've included buttons such as Bold, Italic, Bullet point etc. This is done along...
3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
3
by: Asterbing | last post by:
I want to know the length in pixels of a document embedded in a iframe. The way I go seems to work under IE but not under Firefox (about other browsers I'll see later). Here is my page for...
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...
1
by: Z1P2 | last post by:
I would like to gradually resize an iframe in an onmouseover event. I can easily do it with an image, but when I try to do it with an iframe, it doesn't do anything. So first of all, is it possible...
3
by: matwilko | last post by:
hi, i am trying to create a simple version of itunes...and i am using iframes to do this. I have already set up the iframes using dreamweaver and used a drop-down menu to select the genre. When...
5
by: devdoer | last post by:
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...
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.