Old 23-06-2006, 23:07   #1 (permalink)
AndyB26
Registered User
 
Join Date: Jun 2006
Posts: 3
Loading links question

Hello everyone. I am building a website now, and have a question that hopefully has a simple answer. It will have a few different sections. Lets say the one to the left will have links for different things (pictures, etc.). To the right will be the main website box, where all content will be displayed. However, when you go to the site I want a certain content to be in there, like when i click on the pictures link, i want everything that was in the box to be gone, and for the pictures to load. Same with contact or what have you. Do you understand what Im getting at? Haha, thank you for reading, and if anyone could tell me how to do this that would be very much appreciated.
  Reply With Quote
Old 24-06-2006, 13:59   #2 (permalink)
Bare Koncept
Registered User
 
Bare Koncept's Avatar
 
Join Date: Jun 2006
Posts: 4
The easiest way this can be done is with iFrames, but frames are generally spat upon these days. What you're looking for is AJAX- XML.HttpRequest and DOM (document model) scripting.
  Reply With Quote
Old 24-06-2006, 14:58   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
  Reply With Quote
Old 24-06-2006, 17:13   #4 (permalink)
AndyB26
Registered User
 
Join Date: Jun 2006
Posts: 3
So what part of that needs to be inserted? Im making this site using a div template that i already have made, and im just adding content. So i have a homepage, but when you click pictures i want that to load where the homepage content was. I didnt figure the code would be too long. Any help?
  Reply With Quote
Old 26-06-2006, 18:54   #5 (permalink)
sjd
Registered Abuser
 
sjd's Avatar
 
Join Date: Jun 2006
Location: London, England.
Posts: 187
It all depends on what technologies you have available - i.e. whether you run the html locally, have it hosted somewhere or maintain the server yourself.

Locally: (X)HTML frames, iframes, JavaScript.
Hosted: JavaScript with or without AJAX, SSI, PHP or some other language, template engine, CMS.

If you're hosting your site it's likely that SSI and PHP will be supported. SSI is easy. If you don't know PHP it's probably best to install a basic CMS.

SSI = Server Side Includes
PHP = PHP Hypertext Preprocessor
CMS = Content Management System
  Reply With Quote
Old 26-06-2006, 18:58   #6 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
I can't tell if he wants an AJAXy effect or if he simply wants redundant navigation...
  Reply With Quote
Old 27-06-2006, 06:53   #7 (permalink)
sjd
Registered Abuser
 
sjd's Avatar
 
Join Date: Jun 2006
Location: London, England.
Posts: 187
pgo, was that last link pointing to the flashy image preview thing you use on your site? I reckon that'd solve his problems. The link's dead though
  Reply With Quote
Old 27-06-2006, 10:26   #8 (permalink)
30equals
Senior Member
 
Join Date: Jan 2006
Posts: 146
what i use is php. and then use the switch function which changes content based on what parameters you use in the url you click on.
  Reply With Quote
Old 27-06-2006, 10:32   #9 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,632
Quote:
Originally Posted by 30equals
what i use is php. and then use the switch function which changes content based on what parameters you use in the url you click on.

seconded
__________________
  Reply With Quote
Old 02-07-2006, 00:12   #10 (permalink)
AndyB26
Registered User
 
Join Date: Jun 2006
Posts: 3
Quote:
Originally Posted by pgo
I can't tell if he wants an AJAXy effect or if he simply wants redundant navigation...

Redundant navigation.
  Reply With Quote
Old 02-07-2006, 11:11   #11 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
How about putting the exact same bit of code in every page at the same place then? I'm not sure what you mean...having navigation repeat across pages is a no-brainer...

Can you post a link/example?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8