P
Prabhat
Hi All,
Is it possible to read any ASP variable from a javascript file (.js) ?
Thanks
Prabhat
Is it possible to read any ASP variable from a javascript file (.js) ?
Thanks
Prabhat
Is it possible to read any ASP variable from a javascript file (.js) ?
Evertjan. said:Call it an .asp file and use it as a .js. file.
Actually I call the .js file from the home page like:
<script type='text/javascript' src='Scripts/MenuScript.js'></script>
Evertjan. said:Prabhat wrote on 31 okt 2005 in microsoft.public.inetserver.asp.general:
Don't.
If you want to use lines in that file like this:
var blahClientside = '<% =blahServersideVBSorJS %>';
use:
<script type='text/javascript' src='Scripts/MenuScript.asp'></script>
You want me to change the "MenuScript.js" file to "MenuScript.asp" and
Include the line I wanted to use in javascript file?
and then:
I will use the below line in my home page ("default.htm")?
<script type='text/javascript' src='Scripts/MenuScript.asp'></script>
But if so will the "script type='text/javascript' " still work ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.