Computing.Net > Forums > Web Development > Show content without loading page?

Show content without loading page?

Reply to Message Icon

Original Message
Name: echelon4
Date: May 5, 2005 at 00:22:19 Pacific
Subject: Show content without loading page?
OS: Win Xp
CPU/Ram: Athlon3000+/512ddr
Comment:

Hi. I'm trying to start a website, but i can't find a way to get this working-

I want to load different content in a page, without loading the whole page again. In other words, i want some kind of frame, that when you click on a hyperlink, only content inside that frame is refreshed. It would be great if anyone could direct me to a tutorial, or maybe give me the code for it. THanks in advanced


Report Offensive Message For Removal


Response Number 1
Name: Tautitan
Date: May 5, 2005 at 01:19:09 Pacific
Subject: Show content without loading page?
Reply: (edit)

There is one easy way and that is to actually use frames... but dont! Many people believe that these are the scourge of websites. Frames are the easy way out and look crap most of the time.

Try using php include commands. They will still reload the page but as they have already been downloaded they will display almost instantly. Other than that they are better than frames.

Matt

matt@bbcomputing.co.uk

www.bbcomputing.co.uk


Report Offensive Follow Up For Removal

Response Number 2
Name: crandall87
Date: May 5, 2005 at 01:29:13 Pacific
Subject: Show content without loading page?
Reply: (edit)

Using PHP would be the best way to do this but it shouldn't matter if your whole page loads up as you should make sure the file size of your pages are small enough to load quickly

http://www.craigrandall.co.uk


Report Offensive Follow Up For Removal

Response Number 3
Name: echelon4
Date: May 5, 2005 at 02:53:50 Pacific
Subject: Show content without loading page?
Reply: (edit)

hi, thankyou for your quick replies. Does anyone know of a tutorial that can show me how to do this? Or maybe any search keywords that i can use for this?


Report Offensive Follow Up For Removal

Response Number 4
Name: Tautitan
Date: May 5, 2005 at 03:01:30 Pacific
Subject: Show content without loading page?
Reply: (edit)

Make sure your website has PHP support. If it does you can very simply include your pages. When using PHP it is best to save all of your files as PHP as this will save hassle later on. Then simply add the following code to your website where you desire the "frame" to be. <?php include 'yourfile.php'; ?> Make sure the "frame" does not have it's own HTML HEAD BODY tags etc as they are not needed. For further information about PHP you can visit www.php.net

Matt

matt@bbcomputing.co.uk

www.bbcomputing.co.uk


Report Offensive Follow Up For Removal

Response Number 5
Name: crandall87
Date: May 5, 2005 at 03:03:35 Pacific
Subject: Show content without loading page?
Reply: (edit)

my website also has a simple tutorial on this is done. http://www.craigrandall.co.uk/pages/tutorials/learnphp.php

you can see how everypage has a lot of the same information in the side bars on my website.


Report Offensive Follow Up For Removal


Response Number 6
Name: echelon4
Date: May 6, 2005 at 00:51:47 Pacific
Subject: Show content without loading page?
Reply: (edit)

Finally, i got it working, thankyou so much!!


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Show content without loading page?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge