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

visibility problem in iframe

i have an iframe in which i put src and dont write http:// in begining
and i use visibility="hiddden" to hide it so it does not show the error of cannot find etc
when the whole page is loaded i modify the the src to the correct url and make it visibility="visible" and it works fine

but the problem is that it shows the iframe even when it is hidden and displays
cannot find the file i want to hide the iframe's contents before i make it visible and i cant use display:none as it changes the layout of the parent page

and ive checked display:none works perfectly except that when i make it display:inline it changes the layout of page
Aug 10 '07 #1
4 1538
wrap the <iframe> within a <div>, then make the <div> (in)visible.
Jeroen
Aug 10 '07 #2
thanks for the fast reply
but it didnt help me
i tried using a div to wrap my iframe and made its visibility hidden but it didnt work either
i made div with display:none and it did the same thing as when i did display:none to iframe
it changed the page's layout
Aug 10 '07 #3
epots9
1,351 Expert 1GB
<snip?
and ive checked display:none works perfectly except that when i make it display:inline it changes the layout of page
try display:block instead.
Aug 10 '07 #4
well i want to hide the iframe from view only and want to show it only after i load the src into it
i cant use display:none as it removes the flow and after using display:inline or display:block the whole layout changes

is there a way in which i can hide the iframe without changing layout of page
i tried to wrap it in hidden div but it also gave the same problem and it also showed a scrollbar and i have scrolling="no" but when i make it visible again the scollbar is gone

i am new to javascript and dont know how to fix this problem
can u suggest me any other way to do this
Aug 13 '07 #5

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

Similar topics

3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
1
by: Micky Pearce | last post by:
Hi I have a page containing a hidden <div> called 'controls' plus an <iframe> containing a second page. I need to be able to set the visibility of the 'controls' div when the page in the iframe...
12
by: lawrence | last post by:
The following function correctly makes everything invisible but then fails to turn the one chosen DIV back to visible. I imagine I'm getting the syntax of the variable wrong? I've tried this with...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
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: 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: 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
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.