473,387 Members | 1,516 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,387 software developers and data experts.

Javascript Information Retrieval

Anyone:

Is there anyway to use javascript to be able to retrieve information from
someone, then have it post to a text document on a server? Without
overwriting whats in the document at the time. The server I'm using doesn't
support php, asp, or anything to be able to database (that and i don't even
know how, yet). Plus, I don't need it to retrieve from a database...just a
simple text file that can be written to and read from.

Thank you in advance

Shaun McKinnon
Jul 20 '05 #1
3 1621
> Is there anyway to use javascript to be able to retrieve information from
someone, then have it post to a text document on a server? Without
overwriting whats in the document at the time. The server I'm using doesn't support php, asp, or anything to be able to database (that and i don't even know how, yet). Plus, I don't need it to retrieve from a database...just a simple text file that can be written to and read from.


I wouldn't think so.

JS is completly client side. There is really a pretty good disconnect from
the server once the browser/client receives the page. I think you'll need to
use some server side scripting. I like Perl. You may need to find a new
server that suits your needs.

Bill
Jul 20 '05 #2
Shaun McKinnon wrote:
Is there anyway to use javascript to be able to retrieve information from
someone,
From someone: No, the same origin policy most certainly forbids that.
From servers under your control (of the same second-level-domain): Yes.
You can use XMLHTTPRequest and other methods that have been already
discussed here (not so long ago.)
then have it post to a text document on a server?
You need a server-side application to manipulate the filesystem
of the server. This can be a JavaScript application, though.
Without overwriting whats in the document at the time.
Server-sided, you can do almost anything with
a file, including appending data to it.
The server I'm using doesn't support php, asp, or anything to be able to
database (that and i don't even know how, yet).
Tough luck. You need such technologies to do what you want.
Plus, I don't need it to retrieve from a database...just a
simple text file that can be written to and read from.


You do not need a database management system necessarily for
server-side applications, however. I think a simple CGI script
will suffice here.

But there is the Copyright and author's rights issue, too. You are not
allowed to use content created by others as your content until you have
their (explicit) consent. So if you were thinking about that, forget it
immediately or live with the consequences.
PointedEars, IANAL
Jul 20 '05 #3
Bill M. wrote:
JS is completly client side.


Wrong. There is client-side and server-side JavaScript.
PointedEars
Jul 20 '05 #4

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

Similar topics

13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
10
by: Rob Fentress | last post by:
I am trying to develop very standards-compliant content using XHTML and CSS. I am using CSS positioning and thus need to only include my stylesheet on browsers I have tested to make sure they...
0
by: Emine Ekin | last post by:
/*Apologize for multiple posts*/ FIRST CALL FOR PAPERS ADVIS 2006 Fourth Biennial International Conference on Advances in Information Systems 18-20 October, 2006 Izmir, Turkey
136
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...
4
by: Alexander | last post by:
Hi, I am developing a web-application which will start telephone-calls using a special protocol (callto: or phone:) There will be two groups of users, one with a phone-client installed and...
3
by: Navodit | last post by:
Hi I have a problem in which I am not sure if Javascript can or should be used. If anyone can throw light on this it wd be great : Basically I am working on the development of a database where...
41
by: Rene Nyffenegger | last post by:
Hello everyone. I am not fluent in JavaScript, so I might overlook the obvious. But in all other programming languages that I know and that have associative arrays, or hashes, the elements in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.