CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 2nd, 2002, 06:20 AM
camsoft camsoft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 4 camsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IFrames and CSS

Hi

I am have problems with the Iframe control.

I have a iframe, in the iframe is a page with some controls on. Now what i want to do is hide this iframe, I do this by using the css atribute visibility: hidden; I hide a div that surrounds the iframe. What hapens is that the iframe disapears and all the contents, but any controls in the iframe remain visable.

Now if i take all the controls out of the form and try again, it works fine everything disapears.

I have attached an example in a zip file, there is a pge with an iframe and a button, the iframe contents is google.com when you click the hide button you can see the problems

Any help would be aprecated. Thanks
Attached Files
File Type: zip test.zip (452 Bytes, 669 views)

Reply With Quote
  #2  
Old September 2nd, 2002, 07:51 AM
mia mia is offline
miaWalczak
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: London
Posts: 86 mia User rank is Sergeant (500 - 2000 Reputation Level)mia User rank is Sergeant (500 - 2000 Reputation Level)mia User rank is Sergeant (500 - 2000 Reputation Level)mia User rank is Sergeant (500 - 2000 Reputation Level)mia User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 3 m 57 sec
Reputation Power: 18
Send a message via MSN to mia
which browser are you testing in

camsoft...which browser are you looking at this is in as i have looked in IE 5.00 and works fine....this may indicate where your solution lies...

Reply With Quote
  #3  
Old September 2nd, 2002, 07:53 AM
camsoft camsoft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 4 camsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IE6 and I Think IE 5.5

Reply With Quote
  #4  
Old September 2nd, 2002, 10:42 AM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
Here is a different method:

<script>
function hide(el)
{
document.getElementById(el).style.visibility='hidden';
}
</script>

</head>
<body>

<div id="I_Leaders" name="I_Leaders">
<iframe id="iframe1" class="InlineBdr" width="600" height="200" border="0" frameborder="no" src="http://www.google.com"></iframe>
</div>

<input onclick="hide('I_Leaders')" type="button" value="Hide Inline Frame">

Reply With Quote
  #5  
Old September 2nd, 2002, 04:48 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 13
Send a message via AIM to bricker42
You could also try setting the height and width of the iframe to 0, or set the display property to none.

Reply With Quote
  #6  
Old September 3rd, 2002, 09:10 AM
camsoft camsoft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 4 camsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your help, this solution work very well.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > IFrames and CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap