How to hide white space of a Frame?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2008
Posts: 58
Reputation: zanzo is an unknown quantity at this point 
Solved Threads: 0
zanzo's Avatar
zanzo zanzo is offline Offline
Junior Poster in Training

How to hide white space of a Frame?

 
0
  #1
Nov 7th, 2008
I have a frame that includes a hidden <div> at first (before any action), the problem is that when opening the page, I have a white space, and i can't reduce the size of the frame because the content of the <div> will not appear!

how to hide the white space of the frame without reducing it's size?!?
Best regards,
zanzo
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: How to hide white space of a Frame?

 
0
  #2
Nov 7th, 2008
Do you have a link by any chance? If the div is "hidden" I assume you mean no content, how it is taking up space? Maybe I don't understand the problem entirely...
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 58
Reputation: zanzo is an unknown quantity at this point 
Solved Threads: 0
zanzo's Avatar
zanzo zanzo is offline Offline
Junior Poster in Training

Re: How to hide white space of a Frame?

 
0
  #3
Nov 10th, 2008
when I open the page, I have a frame that contains a hidden div. After uploading a file the div will appear and contains the name of uploaded file.

My question is how to hide the white space when the div is hidden?

u know the frame has fixed height and width! if I reduce the width of the frame, then the content of the div will not appear!
Best regards,
zanzo
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: How to hide white space of a Frame?

 
0
  #4
Nov 10th, 2008
Not too sure why you have punctuated those sentences when I had no idea of your requirements.

Anyway, you should look at the visibility or display attributes for the div (css, but it can easily be modified by JavaScript).
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 58
Reputation: zanzo is an unknown quantity at this point 
Solved Threads: 0
zanzo's Avatar
zanzo zanzo is offline Offline
Junior Poster in Training

Re: How to hide white space of a Frame?

 
0
  #5
Nov 10th, 2008
The frame is in fact an upload form, which should be displayed permanently, when user upload a file the file will appear in a box (this box is hidden if no file uploaded).

The problem is:

Even if the box is hidden, I should have space for it in the Frame otherwise it's content will not appear, so how to hide the white space of the box without decreasing the frame width?!

don't know if u got my idea
Best regards,
zanzo
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: How to hide white space of a Frame?

 
0
  #6
Nov 10th, 2008
So originally the box should be "hidden" and take up no space, correct?

What I assume happens next is some kind of box is pressed to upload a file, and if this is so, you attach an even e.g. "onclick" to the button and change the css of the box at the same time.

Would this work for your scenario?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 58
Reputation: zanzo is an unknown quantity at this point 
Solved Threads: 0
zanzo's Avatar
zanzo zanzo is offline Offline
Junior Poster in Training

Re: How to hide white space of a Frame?

 
0
  #7
Nov 10th, 2008
Yes, That's correct.

But the problem is not with the box! it is with the frame width. Actually if the box is hidden it doesn't take any space. Also, i should have frame size big enough to hold the box content (while not empty). That's why i have problem with white space in my page!

Maybe I can use an event, to increase the width of the frame on uploading a file??
Best regards,
zanzo
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: How to hide white space of a Frame?

 
0
  #8
Nov 10th, 2008
You could probably increase the width of the frame, otherwise have some other content in the frame, or have a permanently hidden div to set the width.

Hopefully I am understanding you now :p
Last edited by sillyboy; Nov 10th, 2008 at 4:23 am. Reason: typos
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 58
Reputation: zanzo is an unknown quantity at this point 
Solved Threads: 0
zanzo's Avatar
zanzo zanzo is offline Offline
Junior Poster in Training

Re: How to hide white space of a Frame?

 
0
  #9
Nov 10th, 2008
Are you ?

Anyway I will try to increase the frame width after upload !!
Best regards,
zanzo
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1
Reputation: mathew.parry is an unknown quantity at this point 
Solved Threads: 0
mathew.parry mathew.parry is offline Offline
Newbie Poster

Re: How to hide white space of a Frame?

 
0
  #10
Feb 26th, 2009
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. Test
  2. <div style="visibility:hidden;display:none;">
  3. You can't see me... <br />
  4. And I don't take up any space...<br />
  5. </div>
  6. Test
  7. <div style="visibility:hidden;display:inline;">
  8. You can't see me...<br />
  9. But I do take up space... <br />
  10. </div>
  11. Test
  12.  
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC