|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#1
Jun 24 2009, 08:56 AM
i don't know if you would call it an html news ticker or not, but what i want to know is how to take a portion of one of my pages, and have it automatically displayed on another page. i am not talking about frames, but html and/or javascript. i want it so when i update one portion of my page, the other page will be updated automattically for the little portion of the page i updated. is there any easy free program that can do this or maybe someone can write a tutorial and post it? or heck. just explain it here. now if what i am talking about isn't an html news ticker? what would you call it exactly? i guessed for the title. sorry |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 2,719 Joined: 28-May 05 From: Devon, England Member No.: 7,593 ![]() myCENT:71.50 |
Post
#2
Jul 3 2009, 02:56 PM
What you're talking about is known as an include - taking the contents of one page/file and displaying them within another. This can be accomplished in HTML with the following code: HTML <!--#include virtual="file.html" --> You will then need to rename the original page with the extension .shtml for the include to work. Hope that helps. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 2,680 Joined: 22-June 05 From: 127.0.0.1 — no place like it. Member No.: 8,528 myCENT:47.40 |
Post
#3
Jul 3 2009, 05:43 PM
If you're going to be placing this code in an HTML page and your HTML pages can parse PHP, then you can use the include function of PHP. Another way is to use AJAX. The only downside to AJAX is that it requires the user to have JavaScript enabled on their browser. But with AJAX you can have that little part of the site update without leaving or refreshing the page. Server-side includes require refreshing or entering a page with it to update the content.
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | illnet | 6,158 | 20th June 2004 - 04:50 PM Last post by: ultrasmad |
|||
![]() |
108 | chelcy | 83,271 | 18th September 2009 - 09:07 PM Last post by: domguan |
|||
![]() |
3 | -Sky- | 631 | 12th June 2009 - 08:48 PM Last post by: -Sky- |
|||
![]() |
40 | EricDrinkard | 39,556 | 1st November 2009 - 01:34 PM Last post by: Www.AnthonyLazaroni.Com |
|||
![]() |
3 | Shackman | 3,129 | 30th July 2004 - 11:01 AM Last post by: Shackman |
|||
![]() |
11 | football123213 | 8,611 | 30th July 2004 - 03:34 PM Last post by: templest |
|||
![]() |
125 | djleli | 40,365 | 5th November 2009 - 10:02 AM Last post by: Ho-oh'sRealm |
|||
![]() |
10 | Saint_Michael | 8,896 | 7th May 2009 - 07:13 AM Last post by: contactskn |
|||
![]() |
2 | CodeName_88 | 3,472 | 5th September 2004 - 03:28 PM Last post by: serverph |
|||
![]() |
54 | habbovalley | 3,845 | 5th November 2009 - 09:59 AM Last post by: Ho-oh'sRealm |
|||
![]() |
0 | deedee2003 | 3,721 | 5th September 2004 - 09:11 PM Last post by: deedee2003 |
|||
![]() |
9 | Liquid Fire | 3,817 | 18th September 2009 - 09:17 PM Last post by: domguan |
|||
![]() |
12 | Saint_Michael | 6,945 | 18th December 2004 - 05:28 AM Last post by: s243a |
|||
![]() |
1 | JaVe | 3,098 | 6th October 2004 - 05:38 AM Last post by: sanweikui |
|||
![]() |
1 | hansley | 7,676 | 11th October 2004 - 03:54 AM Last post by: Trystim |
|||
|
Open Discussion | Time is now: 9th November 2009 - 04:06 PM |
Web Hosting Powered by ComputingHost.com.