update the page without changing it?

Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

update the page without changing it?

 
0
  #1
Feb 9th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: update the page without changing it?

 
0
  #2
Feb 9th, 2005
you could use frames, but it causes problems for search engines, problems with js menus, etc.

You could use an iframe but the same problems apply.

if you use a template then you solve all your problems but the page reloads every time you change page.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 62
Reputation: 2ndPlatform is an unknown quantity at this point 
Solved Threads: 0
2ndPlatform's Avatar
2ndPlatform 2ndPlatform is offline Offline
Junior Poster in Training

Re: update the page without changing it?

 
0
  #3
Feb 9th, 2005
Originally Posted by autocrat
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: update the page without changing it?

 
0
  #4
Feb 9th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: update the page without changing it?

 
0
  #5
Feb 9th, 2005
hmmm.... reason why is simple... I don't want to be the only bugger sorting the website out! If I can make it a little more easier for people to alter the contents, update things etc.... great! All they have to do is figure the content of each page..... then give it to me and I can dump it in.... rather than them telling me, then me do all the work etc.....

Another advantage is that it meanst the front end only has to load once!

As for the DIV's... not sure.... would it make a difference if the site has in excess of 30 pages? (I am thinking it would slow the page loading up just a tad! LOL)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: update the page without changing it?

 
0
  #6
Feb 9th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: update the page without changing it?

 
0
  #7
Feb 9th, 2005
isn't that basically the same as having the details go into a DB and having php call it.... I think you can do the same thing with JS as well ?

Is there a difference?

As to the site.... it's a martia art site for my club... basic at the mo', only about 28-30 pages.... yet going to add a members area/forum, increase the page content etc..... should be around 50 pages at the end.... with any luck!

If I can have the main content easily swappable, then it means I can let them get on with coming up with content whilst I work on being creative with the visual side of the site and maintaining it instead of updating it!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: update the page without changing it?

 
0
  #8
Feb 9th, 2005
Right. Isn't that what you are after? Storing them in a DB and then pulling up the pages without refreshing??
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 29
Reputation: MasashiMikamida is an unknown quantity at this point 
Solved Threads: 0
MasashiMikamida's Avatar
MasashiMikamida MasashiMikamida is offline Offline
Light Poster

Re: update the page without changing it?

 
0
  #9
Feb 10th, 2005
Depending on how 'Funky' you want to get, you can try making a singular Flash Video. I know of a site... balthaser.net I think, that had three pages; one for an intro, one for the flash video (the main site content) and a page that displayed if Flash didn't work. It was pretty cool. That stuff is a bit time consuming though.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: update the page without changing it?

 
0
  #10
Feb 11th, 2005
you could also consider php or server side includes if your server supports them. then you simply dump all the stuff above the content into one include, the stuff below in to another, and all the person editing a particular page sees is the stuff that's not related to your template.

there's a note somewhere about it on www.webdevfaqs.com/php.php
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Site Layout and Usability Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC