Is it possible to have a main page, with all the usual junk placed upon it, have a pretty looking and funky effect menu, yet have the links only change the main content area without loading another page, opening a new window etc. ?
Would I be using frames... and are they acceptable or not to most browsers?
Should it be databased driven... if so, how do I connect a JS menu to the php calling functions?
any idea?
Why is it that you don't want to load a new page, out of curiosity? I wouldn't use frames at all, ever. I guess I wonder why you are looking to complicate things with a whole big database when you can just have multiple pages of regular HTML? What's the drive behind doing it that way?
2ndPlatform
Junior Poster in Training
61 posts since Nov 2004
Reputation Points: 15
Solved Threads: 0
use CSS with DIV Tags. You can set a border to have a "view pane" type of div... which will be your "main screen" of the page if you will. For each new "page" however, it will require a new div. You set the CSS for the div's visibility to hidden (so you don't see the divs) all except for one. That one would be your opening page... or whatever. Then, when they click a link to "load a new page", you hide the presently visible div (or hide all divs) and show only the div that you want to be displayed. So, lets pretend that you have 3 things that you could show.... the opening page, the send me an e-mail page, and a links page to other sites. You have 3 div's, all the exact same size.... with the exact same properties. INSIDE of each div is different (it is the "page" that you are loading). When They click "mail me" or whatever.... it hides the other 2 divs (the main div, and the links page div) and shows only the contact me DIV. The page never reloads, but it has the appearance of a new page, because it hides and shows divs... making it look like a new page.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Well, Yeah.
It would certainly make the page loading extreme. However.... with CGI or ASP, the dynamic loading of pages into the DIV's would be a breeze. I'm not 100% sure what kind of site you are trying to put together here, that would have that many pages... but with some javascript and an IFRAME with a CGI, you could dynamically load the HTML Contents that are required INSIDE the DIV, and use innerHTML to set the information in the old div.... effectively using only 1, MAYBE 2 "view pane" div's.... and then dynamically loading the requested page into the div would be a breeze.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Right. Isn't that what you are after? Storing them in a DB and then pulling up the pages without refreshing??
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
I hate to complicate things further but I would just like to make you guys aware of a newer technology known as AJAX which lets interactive PHP code to be executed or elements on a page to be altered without doing full page reloads. I don't know much about it but just want to throw out that it does, indeed, exist.
cscgal
The Queen of DaniWeb
19,436 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230