Re: JavaScript not working with ASP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Web Spinner (webspinner_at_inbox.lv)
Date: 03/30/04

  • Next message: Mark Schupp: "Re: JavaScript not working with ASP"
    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?


  • Next message: Mark Schupp: "Re: JavaScript not working with ASP"

    Relevant Pages

    • Re: JavaScript not working with ASP
      ... I did that and the generated HTML page has exactly the same ... ASP documents which actually has ASP VBscript code in it, ... The JavaScript part works When I moved the javascript files ... are under the "scripts" directory. ...
      (microsoft.public.inetserver.asp.general)
    • Re: JavaScript not working with ASP
      ... >> Right-click on the page generated by ASP and "view source". ... >> Make sure that the HTML being generated is as expected. ... > The JavaScript part works When I moved the javascript files ... > are under the "scripts" directory. ...
      (microsoft.public.inetserver.asp.general)
    • Re: JavaScript not working with ASP
      ... >> Right-click on the page generated by ASP and "view source". ... >> Make sure that the HTML being generated is as expected. ... > The JavaScript part works When I moved the javascript files ... > are under the "scripts" directory. ...
      (microsoft.public.inetserver.iis.activeserverpages)
    • Re: Export Data to fit into HTML and JavaScript Files
      ... HTML and JavaScript files on a web server. ... the MDB and simply putting them in the correct places in the web server's ... "Roger Carlson" wrote: ...
      (microsoft.public.access.externaldata)
    • Re: view html source code
      ... > and put in the page by script src, ... Enter the absolute value for the URI of the script and prefix it ... To view HTML generated dynamically from javascript files: ...
      (microsoft.public.scripting.jscript)