Log in

View Full Version : Window in a window?



Benzoa
11-09-2006, 11:54 AM
im kinda new at the html/xhtml code stuff but i know there is a way to have a window on ur main page and when u click a link rather then loading a new page in the browser it loads in a window.. so u can have all ur links and such on one index and have them load the new pages on that page.. much like a text area box thing.. but a page.. does anything i said make sence?

Benzoa
11-09-2006, 12:05 PM
this is an example of what im talkin about.. http://www.solarfields.com/sf.html

i looked in windows/frame part od DynamicDirve and i thought once i saw the codes but i cant find them now.

codeexploiter
11-09-2006, 12:16 PM
This can be done using frames.

Using frames we can load multiple pages in various postions it will look as if they are a single page.

Benzoa
11-09-2006, 12:25 PM
Is that the Iframe thing?

codeexploiter
11-09-2006, 12:27 PM
You can do it normal frames doesn't need IFrame

Benzoa
11-09-2006, 12:37 PM
got a link to some simple codes i can pick apart? or are there some on Dynamicdrive i just seein?

codeexploiter
11-09-2006, 12:42 PM
Check this for the introduction to frames (http://www.w3schools.com/html/html_frames.asp)

mwinter
11-09-2006, 12:50 PM
Check this for the introduction to frames (http://www.w3schools.com/html/html_frames.asp)
Why am I not surprised that they neglect to mention the problems associated with frames.

There are relatively few justifications for frames. Unless a navigation menu is enormous (for example, the class list for the Java API), it's unlikely that it should be separated.

Mike

Benzoa
11-09-2006, 12:58 PM
Thanks a ton.. ill play with that some and see what i can do.. im still a little confused as to how i put a link on a page next to the frame and hae it load the new page in the frame.. but im sure ill figure it out.:)

chechu
11-09-2006, 03:24 PM
in your menu place this:
<a href="name.html" target="same">me</a>

target refers to where "name.html" has to be shown when clicked on; in this case in the <iframe>

code <iframe>:
<iframe src="othername.html" name="same" frameborder=0 width=160 height=95 scrolling=no></iframe>

("othername.html" is the name of the page that will load when page where the <iframe> is in opens)

codeexploiter
11-10-2006, 03:55 AM
Why am I not surprised that they neglect to mention the problems associated with frames.

I don't think no introductory tutorials/help contains much about their worst part. I've mentioned an introductory tutorial i think. :)