View Single Post
  #1 (permalink)  
Old March 9th, 2005, 08:48 AM
crmpicco crmpicco is offline
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default set ASP variable values inside Javascript

How do i set ASP variable values inside Javascript? This code below doesnt work??

Am i missing something?

<script language="JavaScript" type="text/javascript">

if (acrobat.ver5)
{
    // if Acrobat 5.0 or newer is installed, do Acrobat 5.0 stuff.
    document.write("Acrobat V5 + is installed")
    <%inst_pdf="yes"%>
}
else if (acrobat.installed)
{
    // do older Acrobat stuff
    document.write(acrobat.version);
}
else
{
    // Acrobat is NOT installed. Do something else.
    document.write("Acrobat is NOT installed.")
    <%inst_pdf="no"%>
}

</script>


www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk