javascript within .ASP page
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > javascript within .ASP page




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    javascript within .ASP page  
Al


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-24-04 11: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













[ Post a follow-up to this message ]



    Re: javascript within .ASP page  
Tim Williams


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-25-04 02:39 AM

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
>
>
>
>
>
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register