|
-
Apr 9th, 2001, 07:17 AM
#1
Thread Starter
Addicted Member
Does anyone know if ASP code is executed when a .js extension file is called from html?
It doesnt seem to, but theres no sodding way of checking.
-
Apr 10th, 2001, 02:29 AM
#2
Frenzied Member
Please explain further....
-
Apr 10th, 2001, 04:49 AM
#3
Thread Starter
Addicted Member
Im calling a .js file from my HTML, but the .JS has asp in it. Now I know IIS5 is suppose to execute ASP code wherever it finds it, but it doesnt appear to be doing it.
Any ideas?
-
Apr 10th, 2001, 05:03 AM
#4
Frenzied Member
I wasn't aware that "IIS5 is suppose to execute ASP code wherever it finds it"
the .js file is only visible to the browser and is not being interpreted by the server
-
Apr 10th, 2001, 06:31 AM
#5
Black Cat
Could you just use a .asp extension for the javascript file and make sure it's included using "language=javascript type=text/javascript" in the tag?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Apr 10th, 2001, 07:00 AM
#6
Thread Starter
Addicted Member
The server cant see the .js file??? Where does it come from then? I think youll find the web server controls all of the files that get sent out. Also IIS5 parses .html and even .cfm files to execute asp code. So I dont why .js should be any different, as it is is treated in the exact same way as a html file is(Check MIME settings under IIS5)
-
Apr 10th, 2001, 07:08 AM
#7
Frenzied Member
If you are including the .js file ads a client-side include then it stands to reason that the server won't read it
-
Apr 10th, 2001, 07:11 AM
#8
Thread Starter
Addicted Member
Why not? What difference does it make? You have to go to the server and request the .js file in the same was as you would a .html or .asp file. Or maybe Im just being REALLY stupid. Are client side includes requested in a different manner?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|