Importing Text

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Apr 29th, 2005, 19:22
New Member
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Apr 29th, 2005, 19:38
New Member
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Apr 29th, 2005, 20:00
Junior Member
Join Date: Apr 2005
Location: Okemos, MI
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Apr 29th, 2005, 21:32
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Apr 29th, 2005, 21:34
Junior Member
Join Date: Apr 2005
Location: Canada
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Apr 29th, 2005, 22:43
Junior Member
Join Date: Apr 2005
Location: Okemos, MI
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
If your host doesn't support PHP, you can always use the basic html code of invisble iframes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Apr 29th, 2005, 23:21
New Member
Join Date: Apr 2005
Location: London
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
importing, text

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42