On 27 Dec 2004 22:06:41 -0800, Fianna Sidhe wrote:
I have an ASP script called blah.asp. I wanted to include it in
another ASP file on another server, without using <!--#include etc.
Why? (I assume that is the way an include is done in ASP)
I had seen another script that looked similar to:
<script language="javascript"
src="http://www.mydomain.com/blah.asp"><script>
[1]
To be blunt Fianna, what you are attempting seems both pointless
and silly.
Silly, because you are replacing a server-side feature that you
have acess to, in lieu of a client-side technology that may or may
not be enabled (or even present).
Pointless, because it will not work. You need to include the
material at the server, whereas JS runs on the client.
Note that their *are* ways to have further text appear in pages
that is written by a JS script, but thay are *almost* *always*
bad scripts for the very fact that non-JS browsers will not
render the content.
But when I tried it nothing showed up on the main ASP page.
[1] As an aside, that snippet above appears to be that the '.asp'
file is generating the JS, so that page is actually referencing
a file that contains JS (and only JS).
Use ASP for your include. Any which way you cut it, it makes
a great deal more sense.
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane