IIS ASP - javascript within .ASP page

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > December 2004 > javascript within .ASP page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author javascript within .ASP page
Al

2004-12-24, 6:32 pm

Does any one know why the javascript does not work
when the page is an .ASP instead of an html.

I do not have the javascript in the code, what I do
I call it within the .ASP as follow.
<script language='Javascript' SRC='jscripts/jscriptname.js'></script>

The jscript work fine once I rename the page into .htm or html.

Any Idea
TIA








Tim Williams

2004-12-24, 9:39 pm

asp or html should have no impact on your js code execution. Would
need to see more of the page to determine the actual problem.

Better syntax for including js files is:

<script type="text/javascript" src="jscript/jscriptname.js" />

the "language" attribute has been deprecated for a while now.

Regards,
Tim.


"Al" <jodizco@msn.com> wrote in message
news:u1KSpOh6EHA.2592@TK2MSFTNGP09.phx.gbl...
> Does any one know why the javascript does not work
> when the page is an .ASP instead of an html.
>
> I do not have the javascript in the code, what I do
> I call it within the .ASP as follow.
> <script language='Javascript'
> SRC='jscripts/jscriptname.js'></script>
>
> The jscript work fine once I rename the page into .htm or html.
>
> Any Idea
> TIA
>
>
>
>
>
>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com