penguinspeaks
Technical User
How do I show a classic asp variable in a javascript link??
I have tried
But it will not allow me to close the script tag with the asp in the script. It shows yellow in Expression.
I have been pulling hair out, teeth out, and everything else on this.
Ideas??
TIA
Thanks,
Penguin
Please keep in mind that I am using classic ASP with MySQL database. Not sure if that information helps or not.
Code:
<script>
var variable = <%=varid%>
window.open("[URL unfurl="true"]https://ferrens.info/MUSIC/PDF2.ASP?id="+variable);[/URL]
</script>
I have tried
Code:
<script type='text/javascript>
var variable = '<%=variable%>';
</script>
But it will not allow me to close the script tag with the asp in the script. It shows yellow in Expression.
I have been pulling hair out, teeth out, and everything else on this.
Ideas??
TIA
Thanks,
Penguin
Please keep in mind that I am using classic ASP with MySQL database. Not sure if that information helps or not.