Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in Java and JSP only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Server side development
Java and JSP
Announcement
Collapse
No announcement yet.
How can i make a Counter in Java Script?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
DJAISI
New to the CF scene
Join Date:
Mar 2004
Posts:
2
Share
Tweet
#1
How can i make a Counter in Java Script?
Mar 8, 2004, 10:48 AM
How can i make a Counter in Java Script?
But i need a counter who uses the minimal resurces!
Thx!
Nightfire
New to the CF scene
Join Date:
Jun 2002
Posts:
4527
Share
Tweet
#2
Mar 8, 2004, 10:58 AM
You can't do one with javascript. You need a serverside language.
Comment
Post
Cancel
weronpc
New to the CF scene
Join Date:
Apr 2003
Posts:
317
Share
Tweet
#3
Mar 8, 2004, 11:01 AM
wrong language you are trying to use for counter. Try use php, jsp, or asp because they are server side language. JavaScript is client side.
I use php, just create a cookie when visitor visit you site, use cookie as a flag.
If visitor contains your counter cookie, then do nothing
If user doesn't contain your counter cookie, then add 1 to your counter and create a cookie.
I don't think you can use JavaScript to do counter, but not 100% sure.
Comment
Post
Cancel
sad69
New to the CF scene
Join Date:
Feb 2004
Posts:
1239
Share
Tweet
#4
Mar 8, 2004, 07:25 PM
Before we bash DJAISI for wanting to use Javascript, first we should find out is wanting to be counted!
So, DJAISI, what are you trying to count?
Sadiq.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment