Include File

They have: 82 posts

Joined: Oct 2001

Hey guys,

Is it possible to have an
in HTML?

I there an equivalent?

Thank you very much!!

Mike

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

No. is the closest (support for browsers v.5+ plus new standards-compliant browsers), but you can't have an entire domain in there...

What are you trying to do, please provide an example.

They have: 82 posts

Joined: Oct 2001

Suzanne wrote: No. is the closest (support for browsers v.5+ plus new standards-compliant browsers), but you can't have an entire domain in there...

What are you trying to do, please provide an example.

Let's say I have some HTML text (a footer) that I want diaplyed on several sites. This way I can make the cahnge one time and have it propagate on every site. This is possible in ASP with the above include statement.

Thank you,

Mike

Blessed is the man who fears the LORD, who delights greatly in his commandments. Psalms 112:1

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

yes, because ASP is a server-side language. You can use a JavaScript script to achieve the same thing (though it will be not seen by people with JavaScript disabled).

JavaScript is the common language used for 3rd party content such as weather widgets, news feeds, et cetera.

If you control the sites, you can write the include function in whatever language you want, tailor it for each site, and use the same file to display the information.

i.e. PHP, Perl, ASP, JSP, JavaScript -- whatever works for that site.

All you're doing is pulling in a text file (which can be .html or .txt or .inc or whatever you want, pretty well), so it doesn't matter what you use.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.