I am trying to pass an Url to a vb-script so that i can open a document:
In HTML I pass the value like this:
<a href="vbscript:" onclick="openDoc('<%# Me.P_WordIcon.AlternateText%>');return false;"> <width="16"><GEN:IMAGE NAME="WordIcon"></GEN:IMAGE> </a>
Passing it to this script:
<script language = vbscript>
<!--
dim objword
sub OpenDoc(strLocation)
set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
end sub
-->
</script>
This doesnt work, but if I type i the URL directly. It works fine.
Does anyone have a clue
I'm I passing the value incorectly??
In HTML I pass the value like this:
<a href="vbscript:" onclick="openDoc('<%# Me.P_WordIcon.AlternateText%>');return false;"> <width="16"><GEN:IMAGE NAME="WordIcon"></GEN:IMAGE> </a>
Passing it to this script:
<script language = vbscript>
<!--
dim objword
sub OpenDoc(strLocation)
set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
end sub
-->
</script>
This doesnt work, but if I type i the URL directly. It works fine.
Does anyone have a clue
I'm I passing the value incorectly??