website programming question

Kaido

Elite Member & Kitchen Overlord
Feb 14, 2004
51,561
7,238
136
First, visit this site and click on a few of the number links (1, 2, 3, 4, etc.) under the category drop-down box:

http://www.adamssite.com/html/

See how the content section (the template thumbnails) loads new content, but the rest of the page doesn't refresh? How do they do that?
 

DannyBoy

Diamond Member
Nov 27, 2002
8,820
2
81
www.danj.me
Originally posted by: Kaido
First, visit this site and click on a few of the number links (1, 2, 3, 4, etc.) under the category drop-down box:

http://www.adamssite.com/html/

See how the content section (the template thumbnails) loads new content, but the rest of the page doesn't refresh? How do they do that?

It's called an iframe.
 

Kaido

Elite Member & Kitchen Overlord
Feb 14, 2004
51,561
7,238
136
Originally posted by: DannyBoy
Originally posted by: Kaido
First, visit this site and click on a few of the number links (1, 2, 3, 4, etc.) under the category drop-down box:

http://www.adamssite.com/html/

See how the content section (the template thumbnails) loads new content, but the rest of the page doesn't refresh? How do they do that?

It's called an iframe.

ah, thanks. brushing up on my HTML/XHTML ;) never got too far with frames in the first place tho :D
 

Kaido

Elite Member & Kitchen Overlord
Feb 14, 2004
51,561
7,238
136
here's another question:

using an iframe, how would you program the page in the frame to fit in the frame? like if I did a 400px width for the iframe and made several frame pages with content.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
learn about CSS and javascript or as its called by the leet, ajax

then you wont need any stinkin iframes.
 

Kaido

Elite Member & Kitchen Overlord
Feb 14, 2004
51,561
7,238
136
Originally posted by: sourceninja
learn about CSS and javascript or as its called by the leet, ajax

then you wont need any stinkin iframes.

one step at a time :D html, xhtml, javascript, css, php, in that order. anything else to toss into the list?
 

DannyBoy

Diamond Member
Nov 27, 2002
8,820
2
81
www.danj.me
Originally posted by: sourceninja
learn about CSS and javascript or as its called by the leet, ajax

then you wont need any stinkin iframes.

AJAX would be XML, DOM & Javascript, actually.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
Originally posted by: DannyBoy
Originally posted by: sourceninja
learn about CSS and javascript or as its called by the leet, ajax

then you wont need any stinkin iframes.

AJAX would be XML, DOM & Javascript, actually.

Picky picky. but yea, your right :) But to be fair, its not ajax, but you could use javascript and css (well I guess you dont really need the css.) to make pages that require no refresh.