Steve,
       You don't really need to change the mime type.  Go into your config
tcl file, go to the ns_section "ns/server/${servername}/adp" section and add:

ns_param   map             "/*.js"

       I've also done some user-specific stuff for cascading stylesheets, and
adding *.css as a map works fine as well.

Kevin Lawver

In a message dated 2/21/2002 12:02:59 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:
> Hey folks,
>
>   I'm new at AOLServer and I would like to return the contents of a
> generated ADP page back to the user as javascript.  I've been using :
>
> ns_returnfile 200 "application/x-javascript"
>
> but this is not syntacically correct.  Is there anyway to just inform the
> browser (perhaps via ns_return?) that the content being generated is of
> type javascript rather than specifying an external file?
>
> This may be in the docs, but they appear to be down right now...

Reply via email to