User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,370 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1983 | Replies: 4
Reply
Join Date: Sep 2005
Posts: 20
Reputation: bestgraphicsbd is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bestgraphicsbd bestgraphicsbd is offline Offline
Newbie Poster

Solution Counter

  #1  
Sep 26th, 2005
I am fairly new to all of this but I think it's great! I've taken courses in HTML, JavaScript and currrently CGI Programming.

My question: Is there an easy way to make a counter in JavaScript? Seems like there should be but can't quite figure it out.

Thank you, :-|
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Counter

  #2  
Sep 26th, 2005
Please define "counter". In programming terms, a counter is simple a variable that is incremented, perhaps within a loop. Yes, JavaScript can do that.
Reply With Quote  
Join Date: Sep 2005
Posts: 20
Reputation: bestgraphicsbd is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bestgraphicsbd bestgraphicsbd is offline Offline
Newbie Poster

Solution Re: Counter

  #3  
Sep 26th, 2005
Yes I would like to keep track of how many visitors to the site.

Thank you,
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Counter

  #4  
Sep 26th, 2005
JavaScript cannot do that. It has no way to read/write info to the server, since it's a client-side language. You'll need a server-side program to implement a "hit counter".
Reply With Quote  
Join Date: Sep 2005
Posts: 20
Reputation: bestgraphicsbd is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bestgraphicsbd bestgraphicsbd is offline Offline
Newbie Poster

Help Re: Counter

  #5  
Sep 26th, 2005
Okay thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 8:44 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC