[thelist] Mixing Javascript with VB
Seth Fitzsimmons
seth at note.amherst.edu
Wed Jan 8 15:03:29 CST 2003
You'll note that it will also work for links that aren't clicked. I.e.,
for each page load, you'll see a "hit."
If you look at the HTML source for the page that's produced, the link
will look like:
<a href="folder/article.pdf" onclick="">Article</a>
seth
Rob Smith wrote:
> Well, just for S&G I tried it out anyway. It worked.
>
> This is my code exactly (for anyone else with this problem):
>
> <%
> set LoggingIt = Server.CreateObject("ADODB.Recordset")
> LoggingIt.ActiveConnection = MM_myConnectionDSNInfo_STRING
> LoggingIt.CursorType = 0
> LoggingIt.CursorLocation = 2
> LoggingIt.LockType = 3
>
> Function logit()
> LoggingIt.Source = "INSERT INTO myTable (myColumn) VALUES ('" & now &
> "')"
> LoggingIt.Open()
> end function
>
> %>
> <a href="folder/article.pdf" onclick="<%logit()%>">Article</a>
More information about the thelist
mailing list