ASP #include file

C

Carafound

Help!!!

I am trying to write an ASP include statement <!--#include
file="file.asp"--> to an HTML stream in a new window using Javascript
document.write command. The page gets built however the include does
not execute (if you look at the source it's there.).

New to Javascript and I would appreciate any help I can get.

Thanks in advance..
 
W

web.dev

Carafound said:
Help!!!

I am trying to write an ASP include statement <!--#include
file="file.asp"--> to an HTML stream in a new window using Javascript
document.write command. The page gets built however the include does
not execute (if you look at the source it's there.).

New to Javascript and I would appreciate any help I can get.
From what it sounds like, you've opened a new window with javascript.
And then afterwards you're trying to write an asp include statement?
If that's the case, you need to rethink how you do things. Javascript
is (mostly used for) client-side. Your asp include requires
server-side. Therefore, it will not work as you thought it would.
Just simply writing to the new window will not make a trip to the
server to grab the included file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top