473,399 Members | 2,278 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,399 software developers and data experts.

How to disable Iframe resize???

55
Hi !

I have a problem with my frame size. The frame is used to display results
in form of html table generated dynamically. Sometimes the frame resizes
its height according to the content in the page it loaded, due to which it
disturbs the whole structure of my webpage. How do i restrict the frame so
that it does not resize itself?

Although i used the attributes height & width ... but still it resizes
automatically??

Thanks in advance

Regards
Hash
Nov 21 '07 #1
4 5292
acoder
16,027 Expert Mod 8TB
Have you used a fixed height and width? Show your code.
Nov 21 '07 #2
Nibbus
18
Hi !

I have a problem with my frame size. The frame is used to display results
in form of html table generated dynamically. Sometimes the frame resizes
its height according to the content in the page it loaded, due to which it
disturbs the whole structure of my webpage. How do i restrict the frame so
that it does not resize itself?

Although i used the attributes height & width ... but still it resizes
automatically??

Thanks in advance

Regards
Hash

Hello,

try setting the noresize attribute.

ex :
<frame name="hiddenFrame" scr="about:blank" noresize="noresize" />

Hope this helps
Nov 22 '07 #3
hash4sp
55
Hi acoder, Nibus !

I tried with the proposed noresize="noresize", but still it didnt
work....

the code which i m using is as follows:

Frame where the html page opens:
---------------------------------------------------
[HTML]<iframe id="ResultFrame" name="ResultFrame" width="190" height="175" frameborder="1" noresize="noresize" ></iframe>
[/HTML]
dynamically generated page:
-----------------------------------------
[HTML]<head><style>.thfont{font-size:8pt;font-family:'Tahoma'} .tdfont{font-size:7pt;font-family:Tahoma}</style></head>
<body onload='arsim_search();'><table id='sim_search_table' dir='rtl' border='2' style='display:none;border-collapse:collapse; border-bottom-color:#6ba849; border-right-color:#6ba849; border-left-color:#6ba849; border-top-color:#6ba849'><tr><td colspan='6'style='font-size:16x'> <strong><u>%u0646%u062A%u0627%u0626%u062C%20%u0627 %u0644%u0628%u062D%u062B</strong></u></td></tr> <tr class='thfont'><th>%u0627%u0644%u062D%u064A</th> <th>%u0627%u0644%u0634%u0627%u0631%u0639</th> <th>%u0631%u0645%u0632%20%u0628%u0631%u064A%u062F% u0649</th> <th>%u0631%u0642%u0645%20%u0627%u0644%u0645%u0628% u0646%u0649</th> <th>%u0627%u0644%u0631%u0642%u0645%20%u0627%u0644% u0625%u0636%u0627%u0641%u0649</th> <th>%u062A%u0643%u0628%u064A%u0631</th></tr> <tr class='tdfont' id='?objectid=98178&label=12991-3908-8522&minX=46.6245015335&minY=24.5826972616&maxX=46 .6248041351&maxY=24.5829684882'> <td>%u062D%u064A%20%u0627%u0644%u0633%u0648%u064A% u062F%u064A%20%u0627%u0644%u063A%u0631%u0628%u064A </td> <td>%u0634%u0627%u0631%u0639%20%u0627%u0644%u0645% u0633%u0644%u0645%u0629</td> <td>12991</td><td>3908</td><td>8522</td><td align=center><IMG SRC='../images/tool_zoomin.png' alt='ZoomTo' onClick=ZoomToPar(98178,'12991-3908-8522',46.6245015335,24.5826972616,46.6248041351,24 .5829684882); style='cursor:hand';></td></tr> <tr class='tdfont' id='?objectid=99984&label=12991-3908-7692&minX=46.6242629309&minY=24.5751039169&maxX=46 .6248352232&maxY=24.5755571956'> <td>%u062D%u064A%20%u0627%u0644%u0633%u0648%u064A% u062F%u064A%20%u0627%u0644%u063A%u0631%u0628%u064A </td> <td>%u0634%u0627%u0631%u0639%20%u0627%u0628%u064A% 20%u0627%u0644%u063A%u0646%u0627%u0626%u0645%20%u0 627%u0644%u0647%u0645%u062F%u0627%u0646%u064A</td> <td>12991</td><td>3908</td><td>7692</td><td align=center><IMG SRC='../images/tool_zoomin.png' alt='ZoomTo' onClick=ZoomToPar(99984,'12991-3908-7692',46.6242629309,24.5751039169,46.6248352232,24 .5755571956); style='cursor:hand';></td></tr> <tr class='tdfont' id='?objectid=426258&label=12991-3908-7620&minX=46.6243850924&minY=24.5745293931&maxX=46 .6245952336&maxY=24.5747543781'> <td>%u062D%u064A%20%u0627%u0644%u0633%u0648%u064A% u062F%u064A%20%u0627%u0644%u063A%u0631%u0628%u064A </td> <td>%u0634%u0627%u0631%u0639%20%u0642%u0631%u0636% u0629</td><td>12991</td><td>3908</td><td>7620</td><td align=center><IMG SRC='../images/tool_zoomin.png' alt='ZoomTo' onClick=ZoomToPar(426258,'12991-3908-7620',46.6243850924,24.5745293931,46.6245952336,24 .5747543781); style='cursor:hand';></td></tr></table></body>[/HTML]
----------------------------------------------------------------------------------------------------------

Note: In the above code the escaped characters are for arabic text.

regards,
Hash
Nov 24 '07 #4
acoder
16,027 Expert Mod 8TB
Try setting the overflow CSS property to "auto".
Nov 26 '07 #5

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

Similar topics

3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
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...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
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.