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

A question about "increment_page_counter.jsp"

P: n/a
I created a web page with about 5 pages. The "home" page (index.html)
has a page counter on it. When readers enter the site, the page
counter increments. When they view the other pages and return to the
home page, the page counter increments. It is therefore possible for
a reader to increment the page counter dozens of numbers. As a
workaround, I created a hidden page that looks just like the home page
including the page counter. When the reader clicks on "Home" they go
to the hidden page. My problem is that the counter still increments
on this page. To display the code in my index.html file here, I
changed the "<" to a "{".

{SCRIPT language="JavaScript" src="http://svcs.verizon.net/svcs/
increment_page_counter.jsp?
obpp=Xlrc2O5cwtTqxMLU6M5Q3trawn5U6sbk4sxm6t4.&amp; type=e&amp;

The "obpp=" is coding for the size, location, font etc of the box that
has the count. Does anyone know what needs to be added to the
"command line" to set the increment value to 0, so that when my
readers go to the hidden homepage, the counter is displayed but doen't
increment?

Any help would be greatly appreciated!

Nov 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
harkawy said the following on 11/13/2007 4:28 PM:
I created a web page with about 5 pages. The "home" page (index.html)
has a page counter on it.
And you are seeing but one of the problems with counters, and statistics
in general on the web.
When readers enter the site, the page counter increments. When they
view the other pages and return to the home page, the page counter
increments.
Isn't that what a counter is supposed to do? Count the number of times a
page is viewed?
It is therefore possible for a reader to increment the page counter
dozens of numbers. As a workaround, I created a hidden page that
looks just like the home page including the page counter.
You are trying to create a workaround to stop a counter from doing what
a counter is supposed to do?
When the reader clicks on "Home" they go to the hidden page. My problem
is that the counter still increments on this page.
Not much of a "workaround" then is it?
To display the code in my index.html file here, I changed the "<" to a "{".
Try it with <, it will still get posted and seen by any decent
newsreader. Even by some that aren't decent (Google Groups).
{SCRIPT language="JavaScript" src="http://svcs.verizon.net/svcs/
increment_page_counter.jsp?obpp=Xlrc2O5cwtTqxMLU6M 5Q3trawn5U6sbk4sxm6t4.&amp;type=e&amp;

The "obpp=" is coding for the size, location, font etc of the box that
has the count. Does anyone know what needs to be added to the
"command line" to set the increment value to 0, so that when my
readers go to the hidden homepage, the counter is displayed but doen't
increment?
That depends, directly on how the increment_page_counter.jsp file is
written to accept parameters. If it can accept different ones at all.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.