Forum Moderators: mack

Message Too Old, No Replies

Dynamic Content

         

alias

8:15 am on Mar 26, 2004 (gmt 0)

10+ Year Member



Hi all,

I've got a question. How do I make such thing: when clicking on a menu link, the content changes, but the page isn't being reloaded. Does it have to do something with JAVA?

Sorry for such noob question :-)
Martin

mack

2:52 am on Mar 27, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi there.

Very often the term dynamic pages is used to describe a page that is build depending on variables. The term generaly means a page that was not written as a standard webpage and can show different content.

Lets say you build a page with a form on it. The page is called "hi.php"

On this page at the top is says "hi" and has a form below it. You fill your name into the form and click next. The page then reapears with "hi bob" (or what ever your nane is) at the top and then the same form.

What is happeneing here is the form is gathering data. The data is then fed to the same page and the page uses this data to re-generate the content. This is a very simple example but is generaly how dynamic pages work.

Another way of possibly acheiving the effect you described is to use frames. Frames are webpages that are made up from 2 or more different pages. There may be a frame for the navigation a frame for the footer and a frame for the content. If you click on a link within the navigation area the content will change in the content frame, thus, giving the impression the page has not reloaded.

Hope this helps.

Mack.

alias

7:02 am on Mar 29, 2004 (gmt 0)

10+ Year Member



Thanks, but I'm not that kind-of-newbie as it looks ;-) Anyway, I have antipathy for frames, that's why the question.

Martin

isitreal

5:10 am on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That can happen in a few ways, either there is a javascript thing that is switching on/off the display/visibility of code on the page, that works quite well in certain circumstances, or the page is actually being rewritten using something like innerHTML and javascript.

alias

8:34 am on Apr 1, 2004 (gmt 0)

10+ Year Member



Thanks, now I at least have a direction to look at. Gotta buy some literature ;-)