I got it to work. I basically rewrote the vbscript to javascript and changed:
set objAttribute = document.createAttribute("onclick")
objAttribute.nodeValue = "vbscript:viewAttachment " & intDocID
objA.setAttributeNode obJAttribute
set objAttribute = nothing
to:
objA.onclick =...
Hi.
I'd like to build an "a href" tag inside a table "td" tag programmatically. Basically something like the following:
<table>
<tr>
<td>
<a href="javascript:void(0);" onclick="vbscript:viewAttachment 123" title="View document">View document</a>
</td>
</tr>
</table>
When I run my code below...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.