By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

Need a counter on webpage that I can control

P: 5
I would like to put a counter on a webpage that will display a specific number and have the ability to increment the number manually.

Thank you in advance,

Gordon
Feb 2 '16 #1
Share this Question
Share on Google+
10 Replies


Dormilich
Expert Mod 5K+
P: 8,639
is this counter client specific or should it be a "global" counter?
Feb 2 '16 #2

P: 5
This counter will be displayed on the webpage and will not change unless I change the number and update the page.

It will be separate from a hit counter for the website.

Thank you in advance for your help.

Gordon
Feb 5 '16 #3

Dormilich
Expert Mod 5K+
P: 8,639
you can put that number in a text file and save it. for updating you would need a separate page (with a form) that updated this text file.
Feb 5 '16 #4

P: 5
Thank you for your quick reply.
Can you help with the javascript for the webpage to display the counter?

If the number is in a text file, can I just update the text file with a new number with an editor and ftp to the website?

Thank you in advance,

Gordon
Feb 5 '16 #5

Dormilich
Expert Mod 5K+
P: 8,639
since the counter is not client-specific (presumably), you have to do all that on the server.
Feb 5 '16 #6

P: 5
Yes, that's right.

Can you supply the code?

Gordon
Feb 5 '16 #7

Dormilich
Expert Mod 5K+
P: 8,639
Can you supply the code?
no ;)
Feb 5 '16 #8

P: 5
Okay, Thank you anyway

Gordon
Feb 5 '16 #9

Rabbit
Expert Mod 10K+
P: 12,359
What he means is that this forum is not a code writing service. We are mainly here to help you trouble shoot your code and offer suggestions / advice. If you post what code you have tried and offer a description of the errors you're getting, we can help. But an out right request to do your work for you is not something most of the volunteers have the time nor inclination to do.

If you have no idea where to begin, then it sounds like you need a basic understanding of code. And that is better accomplished with a tutorial then a forum.
Feb 5 '16 #10

100+
P: 293
What is the logic for incrementing the no.

Could you please provide the code that you tried.?
Feb 6 '16 #11

Post your reply

Sign in to post your reply or Sign up for a free account.