I'm tryling to use VBScript to determine if a user has acrobat reader installed on IE, which I've figured out no prob. The problem is doing something with that information.
In JavaScript I can call a function and pass arguments to it directly in the anchor tag like so:
<a href="javascript:checkadobe('#coldfusionvariable#');">
#coldfusionvariable# being the location of the pdf to go to if te user has acrobat reader installed. A differnt #coldfusionvariable# can be set for each anchor tag dynamically when the application gets records from the database.
I'm not very familiar with VBScript, but the only way I was able to do something similar to that was this:
<a href="javascript..." name="install" value="#coldfusionvariable#">
<script lang...>
sub install_onClick
code...
end sub
</script>
If that is the only way to do it I would have to create a VBS sub process for every single pdf I had a link to on a page, which could be a lot. Is there a way I could use one function like JavaScript to handle all of them? Any suggestions would be greatly appretiated!
Thanks,
Mike
In JavaScript I can call a function and pass arguments to it directly in the anchor tag like so:
<a href="javascript:checkadobe('#coldfusionvariable#');">
#coldfusionvariable# being the location of the pdf to go to if te user has acrobat reader installed. A differnt #coldfusionvariable# can be set for each anchor tag dynamically when the application gets records from the database.
I'm not very familiar with VBScript, but the only way I was able to do something similar to that was this:
<a href="javascript..." name="install" value="#coldfusionvariable#">
<script lang...>
sub install_onClick
code...
end sub
</script>
If that is the only way to do it I would have to create a VBS sub process for every single pdf I had a link to on a page, which could be a lot. Is there a way I could use one function like JavaScript to handle all of them? Any suggestions would be greatly appretiated!
Thanks,
Mike