473,498 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Javascript to write out documents

I want to create my own kind of counter, for myself. I have a resume
page on my site. I want to know how many people go there but dont want
to 'go there' myself because I don't want to increase the hit counter
on that page. So I want to create a html page (that I only know about)
that hold a hit count variable. When someone goes to my resume page,
on the OnLoad() I want to go get that variable, increment it and write
it out. So this function in the OnLoad on my resume page has to get a
variable from a different page, increment it, and write it back out to
that page it go it from in the first page.
Can this be done?

Thanks
Ralph Krausse
www.consiliumsoft.com
Use the START button? Then you need CSFastRunII...
A new kind of application launcher integrated in the taskbar!
ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg
Jul 23 '05 #1
2 1567
Ralph Krausse wrote:
I want to create my own kind of counter, for myself. I have a resume
page on my site. I want to know how many people go there but dont want
to 'go there' myself because I don't want to increase the hit counter
on that page. So I want to create a html page (that I only know about)
that hold a hit count variable. When someone goes to my resume page,
on the OnLoad() I want to go get that variable, increment it and write
it out. So this function in the OnLoad on my resume page has to get a
variable from a different page, increment it, and write it back out to
that page it go it from in the first page.
Can this be done?


You can't do this with Javascript - imagine what fun crackers could have if
you could remotely write to files on your webserver with Javascript!

You would need to do something like this with a server-sided language such
as PHP, Perl, ASP/VBScript etc.

Chris

--
Chris Hope
The Electric Toolbox Ltd
http://www.electrictoolbox.com/
Jul 23 '05 #2
Ralph Krausse wrote:
I want to create my own kind of counter, for myself. I have a resume
page on my site. I want to know how many people go there but dont want
to 'go there' myself because I don't want to increase the hit counter
on that page. So I want to create a html page (that I only know about)
that hold a hit count variable. When someone goes to my resume page,
on the OnLoad() I want to go get that variable, increment it and write
it out. So this function in the OnLoad on my resume page has to get a
variable from a different page, increment it, and write it back out to
that page it go it from in the first page.


Nope - not javascript - though you'd probably need to use it for some
part of the result.

Javascript is client side - that means it only effects the PC that is
visiting the website (and even then, only if javascript is
enabled/supported).

Thus... if you could use javascript to store a value, it would only be
stored on the PC visiting the website - meaning one value would be
stored on your PC when you'd visit and another, likely different value
would be stored on someone elses PC when they would visit.

You need something that allows you to record the visits on the server,
not the client (PC). There are loads of free website counters out there
that you could use that have a seperate page that you could visit to get
the result - they are server based meaning you put something in your
website (perhaps an image) which, when displayed on a visitors PC has
also made a mark on some server out there on the internet recording
their visit.

hope that helps some,
randelld
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9514
by: North Country Boy | last post by:
Hi I'm trying to run the mail merge operation in MS Word from within Javascript. I've already done this in VB but I'm having problems trying to do the same thing in Javascript. First I am trying...
10
1704
by: Tank | last post by:
First off let me say that I am by no means a skilled programmer so i probably have made a dozen mistakes in my attempt at coding my problem. I will tell you the problem so that you have an idea of...
4
3814
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
1652
by: questionr | last post by:
There is a spell checker function which is written in VB Script. The function works well when tested seperately. But when the function is called from Java Script, the function shows an Error saying...
5
2165
by: Lucian Sandor | last post by:
Hello everyone, While I'm a newbie here, I a not new to google, so please don't send me back, it would be useless. First of all I have to specify I am working on a Blogger.com template, therefore...
136
9198
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
47
3478
by: Bonj | last post by:
I downloaded the gzlib library from zlib in order to do compression. (http://www.gzip.org/zlib) The prototype of the compression function seems to be int compress (Bytef *dest, uLongf *destLen,...
8
9395
by: '69 Camaro | last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to examples of the syntax necessary to read the HTML on another Web page when that HTML is produced from JavaScript using the...
24
2157
by: Aaron Gray | last post by:
From what I have been looking at for Javascript library development, browsers that support Javascript 1.5/ECMAScript 3/JScript 5.5 looks like the base level to pitch at. Anyone add anything ? ...
0
7125
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
7208
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...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.