
August 22nd, 2004, 09:38 PM
|
 |
Newton's Apple Wizard
|
|
Join Date: Nov 2003
Location: Los Angeles
|
|
Quote: | Originally Posted by satkin72 Hi,
Is there a way that I can track the number of people who download a document form my webpage. The document is an application form for a job so it would be helpful to know how much web interest there is in the job.
Thanks
Satkin72 |
Yes, definitely possible. I would use ASP to do some of the work. What I would do is this:
Set up a database with a field to keep track of the number of downloads. When someone clicks the link to download the form, instead of it being a link to the .pdf or whatever, make it open a new windows with javascript and give that windows 2 jobs:
1) using ASP, retrieve the database field value, increment it by 1, update the database with the new value, close the database connection.
2) redirect to the .pdf (or whatever) so the user will start downloading the form, then close this popup window with self.close().
Give that a try.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|