Re: JavaScript not working with ASP

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark Schupp (mschupp_at_ielearning.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 08:22:19 -0800

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
"Web Spinner" <webspinner@inbox.lv> wrote in message
news:b7c93f8d.0403282035.50a772b@posting.google.com...
> > What does "doesn't work" mean? We're not looking over your shoulder. Do
you
> > get error messages? Incorrect results?
>
> The javascript code was supposed to display text indicating the date
> of last modification of the x.asp document. It's not doing that. I
> tried a simple statement like document.write("message") in the javascript
> file and it would not even display that.
>
> It seems to me like ASP could not locate that the JavaScript files are
> under the "scripts" directory. I am just wondering if I had to
> configure anything in IIS to let ASP know that it can find these files
> under the "scripts" directory? Forgive my ignorance, but I am a bit new
> to ASP.
>
> >
> > >
> > > I know the example doesn't actually have any asp code in it,
> >
> > ... making this question off-topic for this newsgroup. :-)
>
> Well it's supposed to work alongside ASP code, I only gave a simplified
> example to help illustrate my problem. :-)
>
> >
> > However, I tried your code and cannot reproduce your problem. The page
seems
> > to "work" fine on my server no matter which extension I use.
> >
> > Create a page with only real asp code in it:
> >
> > <%response.write "hello world"%>
> >
> > When you run that in the browser, do you get a page with the words
"hello
> > world"? If not, you may need to go into your IIS settings and turn asp
on. I
> > seem to recall that asp is not on by default in IIS6.
>
> Yes that works. All the ASP codes work. It's the JavaScript part
> that doesn't work when it's ran as an ASP document.
>
> Your help is very appreciated.


Relevant Pages

  • Re: JavaScript not working with ASP
    ... The javascript code was supposed to display text indicating the date ... It seems to me like ASP could not locate that the JavaScript files are ... example to help illustrate my problem. ...
    (microsoft.public.inetserver.asp.general)
  • Re: JavaScript not working with ASP
    ... The javascript code was supposed to display text indicating the date ... It seems to me like ASP could not locate that the JavaScript files are ... example to help illustrate my problem. ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Re: Form post not passing data to ASP???
    ... > I have IIS server installed on XP-pro. ... I also have Norton Internet ... > I can run simple ASP programs without any problem. ... Actually, technically speaking, this is a mixture of html and ASP code. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Quick test for ActiveX?
    ... a BLOB object), one functional difference aside from the ActiveX ... "someASPfile" that uses the above ASP code and includes clsupload.asp ... this ASP code to reproduce your symptoms? ... issues regarding classic ASP and IIS 7. ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP, looping, and stored procedures.... error 800a0bb9 ...
    ... I'm just going to include the .asp page here. ... > If your bottleneck turns out to be occurring in the ASP code itself rather ... > stored procedure, then you may want to think about utilizing GetRows ... >> Oh, and by the way, the test box has SQL server and IIS on it. ...
    (microsoft.public.inetserver.asp.db)