iframe content locking?

Reply

Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #11
Sep 19th, 2007
HTML and CSS Syntax (Toggle Plain Text)
  1. #myframe
  2. {margin-top: -200px;}
  3.  
  4. The alternative is to code a Container with the frame... so you would have...
  5. <frame>
  6. <div id="framecontentwrap">
  7. </div>
  8. </frame>
got confused because of 2 different names here

will try thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #12
Sep 19th, 2007
situation now is like in attachment. I put this:
HTML and CSS Syntax (Toggle Plain Text)
  1. #framemove {
  2. margin-top: -200px;
  3. }
in tabstyles.css.

it is not skipping the 200? what is wrong?
Last edited by coat; Sep 19th, 2007 at 10:38 am.
Attached Files
File Type: php thispage.php (3.7 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #13
Sep 19th, 2007
AS I dsaid, no idea if it would work.... I don't sue frames...

that said, did you try the other methd of putting in a div within the frame and applying the style to that?


<frame>
<div id="frameddiv">
</div>
</frame>

#frameddiv{
margin-top: -200px;
}

???

The only tother things I can think of is to use JS - which is something else I avoid as much as possible.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #14
Sep 19th, 2007
tried all sorts of those com binations but it wouldn't work. below is other suggestion with a remark.

HTML and CSS Syntax (Toggle Plain Text)
  1. function hideIframeTop(ifrId) {
  2. var oIframe = document.getElementById(ifrId);
  3. var oDoc = oIframe.contentWindow || oIframe.contentDocument;
  4. if (oDoc.document) {
  5. oDoc = oDoc.document;
  6. }
  7. oDoc.body.style.marginTop = '-200px';
  8. return false;
  9. }
  10.  
  11. <iframe id="ifr" src="/" onload="hideIframeTop('ifr')" />
this will only work for relative paths on the same server
page calling the frame is in domain.com/folder1/page.php. the page called is in domain.com/folder2/page.php.

how can it work if like that?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #15
Sep 19th, 2007
No idea...

I can see that it is applying the style of margin top -200px... but it seems to be applying it to the contents of the frame (the body of the pagethat loads).
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #16
Sep 19th, 2007
Well, I cannot get it to work (then again, I'm naff with scripts )
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #17
Sep 19th, 2007
Nope - it will only draw the Body up to the very top, not beyond it....

Frustrating!
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #18
Sep 19th, 2007
I give up -sorry.

I've tried applying Psotion Abs/Rel - that makes the gframe itself move.
I've tried applying margin/marginTop etc. with negatives - nothing happens after the body shifts to the frame edge.
I've tried using Clip-rect/overflow etc... nothing!

I'm out of ideas
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #19
Sep 19th, 2007
I suggest they reduce computer science exams to 1 ques tion: how can content be placed higher than an iframe itself? this isn't rocket science is it? thank you for try ing. anyone?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: iframe content locking?

 
0
  #20
Sep 20th, 2007
The solution is to generate new content with those pixels removed.
Daylight-saving time uses more gasoline
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 HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC