Re: JavaScript not working with ASP
From: Web Spinner (webspinner_at_inbox.lv)
Date: 03/30/04
- Previous message: Mark Schupp: "Re: JavaScript not working with ASP"
- In reply to: Mark Schupp: "Re: JavaScript not working with ASP"
- Next in thread: Mark Schupp: "Re: JavaScript not working with ASP"
- Reply: Mark Schupp: "Re: JavaScript not working with ASP"
- Messages sorted by: [ date ] [ thread ]
Date: 30 Mar 2004 07:53:44 -0800
"Mark Schupp" <mschupp@ielearning.com> wrote in message news:<#ycINnaFEHA.1840@TK2MSFTNGP12.phx.gbl>...
> Right-click on the page generated by ASP and "view source".
> Make sure that the HTML being generated is as expected.
>
> --
> Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
I did that and the generated HTML page has exactly the same
contents as the file "x.asp" as I orignally posted - this of
course is what's expected. I already did this with my other
ASP documents which actually has ASP VBscript code in it,
and it was generated according to the way I want it.
All the ASP stuff works. It's just the JavaScript that does
not work. I had the same problem even when running it on
another machine with PWS on it.
The JavaScript part works When I moved the javascript files
from c:\inetpub\wwwroot\scripts to c:\inetpub\wwwroot and
modified the x.asp file accordingly, ie:
<SCRIPT language="JavaScript" src="updated.js" type=
"text/javascript">
</SCRIPT>
However, I would like to keep things neat and tidy by
placing all my external javascript files under the script
directory.
My belief is that somehow, opening it as an ASP document
doesn't allow it to recognize that javascript files
are under the "scripts" directory. All I did so far
was create a "scripts" directory under c:\inetpub\wwwroot
and placed js files in it.
Is there anything else I need to configure to let IIS or PWS
know that javascript files are in a "scripts" subdirectory?
- Previous message: Mark Schupp: "Re: JavaScript not working with ASP"
- In reply to: Mark Schupp: "Re: JavaScript not working with ASP"
- Next in thread: Mark Schupp: "Re: JavaScript not working with ASP"
- Reply: Mark Schupp: "Re: JavaScript not working with ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|