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.

JavaScript Forum


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



Reply
name of javascript help needed
Old 06-28-2009, 10:30 AM name of javascript help needed
Skilled Talker

Posts: 52
Trades: 0
I have been looking at javascript codes (copy and paste) web sites. I am having no luck finding a code that would put a counter on a link. I am trying to make a counter next to file link so it shows on the web page "this file has been download x number of times".

Any ideas of what I need to be searching for or what that kind of javascript code would be called?

Thank you
Kimberly
Kimberly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2009, 02:47 PM Re: name of javascript help needed
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It cannot be done with javascript only, you will need some server side to collect and store the count in a database or flat file storage, and use "AJAX" calls to increment the count.
Reading and displaying the count can be done as the page is requested.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-29-2009, 02:52 PM Re: name of javascript help needed
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by chrishirst View Post
It cannot be done with javascript only, you will need some server side to collect and store the count in a database or flat file storage, and use "AJAX" calls to increment the count.
Reading and displaying the count can be done as the page is requested.

I have no idea what AJAX is and have very limited knowledge of databases. Thanks, I thought I was wasting time trying to find a way to do this and you saved me many long hours of researching the impossible.

Kimber
Kimberly is offline
Reply With Quote
View Public Profile
 
Old 06-29-2009, 02:57 PM Re: name of javascript help needed
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
it is far from impossible, but obviously will depend on your skill level and what (if any) server side code your site host has available.
Some time ago I posted code to do this somewhere and will either post it again or link to it when I find it
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-29-2009, 03:21 PM Re: name of javascript help needed
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by chrishirst View Post
it is far from impossible, but obviously will depend on your skill level and what (if any) server side code your site host has available.
Some time ago I posted code to do this somewhere and will either post it again or link to it when I find it
I use RackSpace so I have all kinds of hosting features, it a matter of my skill level which is not up to par. In this economy I had to let my freelancer IT people go so I have to do the work myself which is not something I have the skills to do. I know html well because there were no web design programs when I started my business and javacript I've used. I learned my article manager software, it's css sheet and can play with the codes enough to get what I want but after that... I pretty lose..

it is something I have to shove under the table till the economy gets better.

Thanks
Kimberly is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 05:23 AM Re: name of javascript help needed
Average Talker

Posts: 18
Name: Roshan Dark
Trades: 0
dstats.net go this site and try that javascript code , and if this doesn't work for you , try to put download file code in FORM tag and every form submit increase your counter with 1 value and redirect browser to the download code simultaneously , reply me after trying this,
__________________

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


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


Please login or register to view this content. Registration is FREE
roshandark is offline
Reply With Quote
View Public Profile Visit roshandark's homepage!
 
Reply     « Reply to name of javascript help needed
 

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.99002 seconds with 12 queries