Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Is there and include or copy facility in html?

Reply
Thread Tools

Is there and include or copy facility in html?

 
 
Cogito
Guest
Posts: n/a
 
      08-08-2005
There is a chunk of html links that I use in several pages. Do I need
to manually copy them to each of the other pages each time I add a
link or is there a way to have them saved in a file and dynamically
included in other pages?
 
Reply With Quote
 
 
 
 
roland.E.oderant
Guest
Posts: n/a
 
      08-08-2005
Cogito wrote:
> There is a chunk of html links that I use in several pages. Do I need
> to manually copy them to each of the other pages each time I add a
> link or is there a way to have them saved in a file and dynamically
> included in other pages?

Read up on server-side includes (if your server lets you use them),
external javascripts (if it doesn't), inline frames, and whatever I've
forgotton that everyone else will remind me of ....

rEo
 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=
Guest
Posts: n/a
 
      08-08-2005
Cogito wrote:

> There is a chunk of html links that I use in several pages. Do I need
> to manually copy them to each of the other pages each time I add a
> link or is there a way to have them saved in a file and dynamically
> included in other pages?


In pure HTML code, no. The use of frames (a frameset or the iframe
element), client-side scripting (such as JavaScript) and/or inclusion
with <object> can be buggy at best, since old browsers don't support
these methods, and several newer browsers have the ability to disable
the use of plugins and client-side scripting. Also, you may not always
get the results that you want, something which will only annoy your
visitors (and potential customers) further. IMO, this is better done on
the server side.
http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another

Do also follow the recent (and active) thread with the subject line
"Possible to Insert One HTML Doc Into Another?".

--
Kim André Akerĝ
-
(remove NOSPAM to contact me directly)
 
Reply With Quote
 
Safalra
Guest
Posts: n/a
 
      08-08-2005
roland.E.oderant wrote:
> Cogito wrote:
> > There is a chunk of html links that I use in several pages. Do I need
> > to manually copy them to each of the other pages each time I add a
> > link or is there a way to have them saved in a file and dynamically
> > included in other pages?

> Read up on server-side includes (if your server lets you use them),
> external javascripts (if it doesn't), [snip]


Please avoid Javascript if the links are at all important (for example,
navigation), as a small but significant number of visitors won't be
able to see them. More generally, Javascript shouldn't be used for
important features, unless a non-Javascript version is also made
available.

There's another thread active on this subject at the moment - 'Possible
to Insert One HTML Doc Into Another?'. Also the thread 'IFrame'
mentions some issues with iframes as opposed to includes.

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why autofill facility not there in Mozilla? Chaudhry.Nijjhar Computer Support 6 11-28-2008 08:38 AM
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
what is Deep Copy, shallow copy and bitwises copy.? saxenavaibhav17@gmail.com C++ 26 09-01-2006 09:37 PM
is dict.copy() a deep copy or a shallow copy Alex Python 2 09-05-2005 07:01 AM



Advertisments
 



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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57