This is a discussion on "Importing Text" within the Web Page Design section. This forum, and the thread "Importing Text are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Importing Text
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Importing Text
Hi guys,
I'm relatively new and want to know if there is a way to import text into an HTML document without using Javascript. I want the same footer on all of my web pages and only want to have to change it in one location. I know I can link to a .js file with all the footer text, but don't want to go that route because of browser issues. I know there must be another way that is completely browser friendly and figured someone in this forum of experts could help. Please help if you know how to do this. Thanks guys. |
|
|
|
#2
|
|||
|
|||
|
i would recommend using the php include function
just put <?php require("http://www.yourdomain.com/footer.html"); ?> at the bottom of each of your pages and make sure your url extension is .php this is probably the best option as you only need to change the one file to change the footer on all your webpages and because it is php, the server will do the work so all the user will see is a normal html page. |
|
#3
|
|||
|
|||
|
I use the php include code that is similar to iframes, but except it doesn't have eye frames. If you want I can send you the code and i'll help you out.
|
|
#4
|
||||
|
||||
|
wat u guys need to consider though is what hosting bklcomputing has available to him - if it cant proccess php or server-side scripting, then the php include is useless
|
|
#5
|
|||
|
|||
|
Have a look at this post. I pretty much covers exactly what you want to do, except this was for a nav bar. Hope it helps.
http://www.webforumz.com/viewtopic.php?t=3392 |
|
#6
|
|||
|
|||
|
If your host doesn't support PHP, you can always use the basic html code of invisble iframes.
|
|
#7
|
|||
|
|||
|
I am not even gonna try to answer your question, too many unknown variables.
But one thing I will say, as with posting to most technical forums/newsgroups please state operating system, web server, hosting restrictions and environment. It helps no end to give you a relevant answer. Just my 2 pence/cents worth Del. |
![]() |
| Tags |
| importing, text |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| importing .flv ... Help | nutbolt | Flash & Multimedia Forum | 1 | May 16th, 2007 22:11 |
| Paragraph formatting when importing text from TXT or XML | McAurthur19 | Flash & Multimedia Forum | 0 | Mar 20th, 2007 19:12 |
| Importing Images Through PHP | Charisma | Flash & Multimedia Forum | 12 | Jan 6th, 2007 05:59 |
| Importing URL Page | Andy_H | Web Page Design | 2 | Jun 7th, 2005 15:55 |
| importing txt file to SQL with recordset | EnvY | Classic ASP | 21 | Mar 28th, 2005 11:22 |