What i want to do is to implement visitor counter in the home page
of a web application, with daily visitors and total visitors.
i don't want to use code behind, i want to use javascript to write in local file (on server) not on the client side the current number of visitors
Can any one help.
Best Regads.
3 7082 gits 5,390
Recognized Expert Moderator Expert
hi ...
welcome to TSDN ...
this is a serveside question ... tell me what serverside scripting language (i guess a .net language because of your code-behind statement) you use and i send the thread over there for you ...
kind regards
hi ...
welcome to TSDN ...
this is a serveside question ... tell me what serverside scripting language (i guess a .net language because of your code-behind statement) you use and i send the thread over there for you ...
kind regards
Thanks for your reply, but due to that am using SharePoint Server 2007,
there is no code behind in the page, i have to create user control and populate it in the site, and i don't know is the file system code will work as regular aspx page in the sharepoint file system, you know because ghosting, and check in and check for every file, and the files are not physicaly, they are in the DB, because of all that i want to use Script.
Thanks
gits 5,390
Recognized Expert Moderator Expert
hi ...
you cannot use javascript to write a file (besides of a cookie at clientside) ... and of course you cannot write things at the server with it ... in case you want to write a file on the server or update the database a serverside script has to be involved. you may use a XMLHttpRequest for that ... so js would be involved at the client ... but even with that you have to call a serverside script. javascript is supposed to do things at the client ... and you cannot do things on the server with it ... besides to make a call to a program/script over there.
kind regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Mark Szlazak |
last post by:
All files that I will be referring to are in the same file folder. I
need my javascipt file to write or save the contents of a textarea to
other local files. This is for local use only on one system.
I have no problem doing this in NN4 and IE.
However, I have problems with nn7 and moz1.4 even when I add this to my
prefs.js files:
user_pref("signed.applets.codebase_principal_support", true);
|
by: Christian Schmitt |
last post by:
Hi,
I want to write a script that (run from a file on the local HD) reads
another local html-file into a variable, then make some changes to it, and
then output the result in a way that makes it simple for the user to save
it again. And all of this should run in any current browser, not just IE.
I managed to access the code of the current document by
code = document.documentElement.innerHTML
|
by: chris.schwalm |
last post by:
I would like to first state that I have searched through the archives
and found a lot of related material, but am still new enough to
javascript that I can't fit all the pieces together yet. So here is my
situation.
I would like to create a program that grabs the source of a displayed
webpage, sends it off to another program, then receive the
slightly modified source back from that other program, and then reposts
the slightly modified...
|
by: Alex |
last post by:
Yes you can:
<html><head><script language="javascript">
SaveToFile('This is a text to save in a file', 'C:\\temp\\test.txt');
alert(read('C:\\temp\\test.txt'));
function SaveToFile (text, fileName) {
try
{netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');}
|
by: eholz1 |
last post by:
Hello PHP Group,
I am having trouble setting permissions correctly so that the
magickwand api (php 5.2) can read and
write images. I usually read a file from one directory, create a
magickwand resource from that file,
and transform the image, and save the new image with a new name to a
different directory.
I have seen that my file and folder permissions when set incorrectly,
| |
by: 000dreamsound000 |
last post by:
Hi
I need help with to access a text file over my local network.
I need to be able to create,read, write and delete the txt file on a specific machine(s) from any computer over the network. The folder where the txt file should be created is enabled for sharing and allows other users on the network to change files (XP Pro on all machines). My code is as follows:
// Writing Local IP to File
fstream myfile;
myfile.open...
|
by: Kevin Ar18 |
last post by:
I posted this on the forum, but nobody seems to know the solution: http://python-forum.org/py/viewtopic.php?t=5230
I have a zip file that is several GB in size, and one of the files inside of it is several GB in size. When it comes time to read the 5+GB file from inside the zip file, it fails with the following error:
File "...\zipfile.py", line 491, in read bytes = self.fp.read(zinfo.compress_size)
OverflowError: long it too large to...
|
by: Ross |
last post by:
Hello,
I am trying to Read and Write to a text file on a web server using Microsoft Visual Basic 2005 Express Edition.
So far I have managed to complete my testing with a local text file using the StreamReader Class. Is it possible to use this class when trying to read and write to a text file located on a server? If so, could you please provide some examples?
I have setup a free web host with www.ifastnet.com and have some connection...
|
by: dreamfalcon |
last post by:
Hi!
I need to read and write the content of a text file given by the users.
The idea is to have two options.
Read:
-the user selects a file with a <input type="file">
-using javascript, read the content of the file and process it.
Write:
-build a string and display a "Save as dialog" to save to a text file
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |