Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Script Logfile

Status
Not open for further replies.

jeffwest1

MIS
Aug 29, 2007
50
NL
Does anyone have any code that will set up a simple logfile of persons entering an inital page on a intranet site, i just need to write the network id, Time and date into a text file.

I only want to do this for a short time to enable me to find an rouge network user.

--------------------------------
Luke: But tell me why I can't...
Yoda: No, no, there is no why. Nothing more will I teach you today. Clear your mind of questions.
 
I assume you don't want to write the file to the machine that's accessing the intranet, but rather the server that is hosting it, in which case JS is the wrong tool to use.

If you want to write the log file on the server you'll need to use a server side language to do so. Such as ASP, PHP, Coldfusion.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
If the only browser in use on your intranet is IE, then you could probably use an old FAQ I wrote as a good starting point: faq216-5305

As Phil points out, by default this would write the logfile to the local PC, but you could potentially write to a shared folder somewhere.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top