p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   HTML Code Clinic (http://p2p.wrox.com/forumdisplay.php?f=90)
-   -   set ASP variable values inside Javascript (http://p2p.wrox.com/showthread.php?t=26610)

crmpicco March 9th, 2005 08:48 AM

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

joefawcett March 9th, 2005 12:32 PM

Code:

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\";" %>
}
//etc.

--

Joe (Microsoft MVP - XML)


All times are GMT -4. The time now is 04:37 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.