Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Counter on link or button Question
Old 06-18-2009, 09:37 AM Counter on link or button Question
Skilled Talker

Posts: 52
Trades: 0
Hello,

Is there any type of coding I can use to add a counter to a link on a web page such as a pdf file so it shows on the web page how many times the pdf link has been clicked? Example: this has been download x number of times.

Thank for any advice
Kimberly
Kimberly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-18-2009, 06:57 PM Re: Counter on link or button Question
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
It's absolutely possible.
You could have a redirect script on the server that counts and 302's to the file. You could have custom download code, you could have javascript, make an ajax call and then direct to the file, it's pretty limitless
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 06-19-2009, 10:03 AM Re: Counter on link or button Question
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by willcode4beer View Post
It's absolutely possible.
You could have a redirect script on the server that counts and 302's to the file. You could have custom download code, you could have javascript, make an ajax call and then direct to the file, it's pretty limitless
I really don’t mind doing my own homework on how to do this but if you could give me a bit more of a starting point that would be wonderful. I got tons of book on codes so I can look read up on stuff on an as need basis.

I am using a content manager where I upload the file but I can go in appears in the page and I have put in an example of the basic codes from my content manager which I pretty much understand. I have played with javascript in this article content manage before but never had any luck getting javascipt but I admit I not but a lot of work into it.

Any thought on where would be the best starting point or codes research I should do? BTW I have three content managers and hundred's of downloadable pdf files. Instead of doing "rating this" or "comment on this", I was thinking "this file has been downloaded this may times" type of deal.


<!--templateInsert :$article.attachments$--><!-- /templateIf -->


<!-- templatecell : article.attachments.row --><br>
<font size="4">
<a href="$file.weburl$" target="_blank">$file.title$</a></font>
<!-- /templatecell : article.attachments.row --><br style="clear: both;" />

Thank you for your time
Kimberly

Last edited by Kimberly; 06-19-2009 at 10:06 AM..
Kimberly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Counter on link or button Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17262 seconds with 12 queries