473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

A question about "increment_page_counter.jsp"

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
1 1356
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Soefara | last post by:
What I'd like to have a request to, say, http://www.mydomain.com/Aaaa/Bbbb/Cccc be handled by http://www.mydomain.com/Aaaa/index.php but with the "Bbbb" and "Cccc" stored in a request variable...
9
by: Russ Perry Jr | last post by:
I'm using "ID" and "Value" in the generic sense here... Let's say one page I had a <html:select> with a collection like this: <html:options collection="items" property="key"...
6
by: Ken Varn | last post by:
Sometimes when I try to close my managed C++ application, the following dialog displays in Win 2000 Pro: The title of the dialog is "Server Busy". The message is "This action cannot be completed...
13
by: Simon Wigzell | last post by:
Can I trap when the scroll is ended? This is what I want - the calculator disapears when the site visitor starts scrolling the main page. I'm doing that with an "onScroll()" function. I'm bringing...
4
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not...
24
by: jrefactors | last post by:
I have an upload file operation in the web application. UploadForm.jsp is the form, and UploadAction.jsp is the form processing. The web server is Websphere. //UploadForm.jsp <FORM...
1
by: Darren Lew | last post by:
Hi there, I have this problem which is really driving me nuts for a couple of days. Glad if any help or suggestion is given Javascript will give me a pop-up error "Access is denied" when i try...
3
by: rkhurana | last post by:
Hi I am writing a JSF application that uses some third party charts. While I can see the chart but the javascript that is supposed to calla function to update chart periodically has a problem. It...
3
by: jd | last post by:
I'd like to create a program that takes files with "jsp-like" markup and processes the embedded code (which would be python) to produce the output file. There would be two kinds of sections in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.