Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newtoasp2002

Status
Not open for further replies.

spookie

Programmer
May 30, 2001
655
IN
hello everybody

i want to keep trak of the site visitors who have downloaded certain document.so when a user clicks on a link
the value should increase by one.
in what way i can do that?
i suppose i have to write a javascript function and call this on click of the link.but how an asp variable get passed to javascript function and vise a versa?

can somebody throw a light on this?

thanks in advance

newtoasp2002
 
You could increment a Session variable, or a cookie when the page is loaded - this is the only way you cn do it server-side. They can only download it if the server serves it, so you can count server-side.

If you wanted to track clicks you would write a "client-side" cookie, which will then be available at a later date to the server. By client-side I just mean client written, since cookies are client items.


Cookies are one thing Server and client can share on any browser.

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top