Include files

Results 1 to 5 of 5

Thread: Include files

  1. #1
    coffeeholic Guest

    Default Include files

    Is it possible to do a file include inside a JavaScript tag, or do I need to close it first, include the file and then reopen it to finish the JavaScript?<BR><BR>Thanks.

  2. #2
    Peter G Guest

    Default RE: Include files

    If you have IIS 5 you can use Response.Execute("myfile.asp") inside your script rather than the &#060;!--#include file="myfile.asp"--&#062; outside your script.

  3. #3
    coffeeholic Guest

    Default RE: Include files

    Thanks - I&#039ll give that a try.

  4. #4
    Peter G Guest

    Default OOPS

    Sorry, it&#039s Server.Execute, not Response.Execute.

  5. #5
    coffeeholic Guest

    Default RE: OOPS

    Actually I&#039ve got IIS 4, so it&#039s irrelevant anyway. I tried closing the script tag & then including the file & then opening a new script tag to resume the JavaScript, but it seems to be having some difficulty with that. Any other suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts