LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2008, 09:20 PM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Expanding iFrames


I am building a website and my focus is to make look of the site consistent across all of its sub-pages, so I'm building a shell page with the links and things and embedding the content of the page in iframes. I am having the links open their destinations within this iframe. I forgot what I need to do in order for the height of my iframe to expand to fit the contents of the current page instead of having a fixed size and just slapping a scrollbar on the side of it. I would just specify the height but I don't want it to get jacked up if I change the content above it causing it to move up or down the page. Here is all I've put in so far for my iframe.

Code:
<iframe src="main.html" name="main" scrolling="auto"
 width="100%"></iframe>
Edit: I'm using the WYSIWYG editor Kompozer to help me out with this so if you can tell me about an option in this program that would be handy too.

Last edited by dudeman41465; 06-25-2008 at 09:22 PM.
 
Old 06-27-2008, 11:24 AM   #2
jimmykarily
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
I found this with a quick googling.

http://www.frontpagewebmaster.com/m-89000/tm.htm#89000

As you see, you can do it with javascript. But I don't think that this is the best way to implement your idea. Keep in mind that loading a different page that has the same photos with the previous one makes it load almost instantly because browsers are clever enough to keep some things in memory. For example see this : www.art-scripta.gr
Every page is a complete new one, but the photos of the menu are the same. So it behaves almost like the way you want it. And plus, you avoid javascript and iframes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expanding my experiance Michael_aust Linux - Newbie 5 06-15-2006 07:16 PM
php, iframes and loading a page poeta_boy Programming 3 03-15-2005 03:45 AM
expanding partions wolfe2554 Linux - General 7 07-10-2004 11:00 AM
expanding / michael_mead Linux - General 3 09-03-2003 02:22 PM
Ms Ie Iframes????? graystarr Linux - Software 0 08-18-2003 12:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration