473,395 Members | 1,474 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.

ssjs create file - I can't do it :(

Hi, I'm trying to create a text file on an asp page but am having loads
of trouble.

At the minute what happens is this - I have a form with a textarea.
When the form posts, the action is to run an asp page. Inside the asp
page I want to take the text from the textarea and write it to a text
file.
>From looking on the net and googling many many times I can only find
the following way to do this;

var file_obj = new File("path/filename");

from here I should be able to do things like write to the file. I'm
stopped however on the above line. When I run the asp page I'm told
that File hasn't been identified. I'm not aure what to do, I'm writing
it exactly as examples show :(

anyone have any ideas?

I've succesfully written a text file using vbscript, but can't get the
for loop to work properly there and as that loop type is needed I can't
use vbscript either at the moment :(

Someone please help, its driving me mad

Nov 29 '06 #1
2 1834
VK

SteMc wrote:
>From looking on the net and googling many many times I can only find
the following way to do this;

var file_obj = new File("path/filename");
There is not intrinsic constructor File neither in standard JavaScript
nor in JScript. So what you have found it must be a part of some custom
library.

If you want to create a text file client-side then you cannot do it
within the default security settings (for relaxed security there are
several UA-dependant options)

If you want to create a file server-side using your ASP page then
<microsoft.public.inetserver.asp.generalwould be more relevant for
your question.

Nov 29 '06 #2
Yeah, I will be posting a message in that group too, but as ASP
supports multiple languages I'm not confindent of an answer there. I
suspect that I'll be posted back here because my question is javascript
specific. Having looked already I've found that the the text related
questions in that group focus on vbscript.

thanks anyway for your post, its useful to know that the File
constructors isn't available-it'll stop me going round in circles. :)

ta,

Ste

VK wrote:
SteMc wrote:
>From looking on the net and googling many many times I can only find
the following way to do this;

var file_obj = new File("path/filename");

There is not intrinsic constructor File neither in standard JavaScript
nor in JScript. So what you have found it must be a part of some custom
library.

If you want to create a text file client-side then you cannot do it
within the default security settings (for relaxed security there are
several UA-dependant options)

If you want to create a file server-side using your ASP page then
<microsoft.public.inetserver.asp.generalwould be more relevant for
your question.
Nov 29 '06 #3

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

Similar topics

4
by: Frank Millman | last post by:
Hi all I need to generate potentially large reports from a database, and I want to offer the option of print preview before actually printing (using wxPython). I figure that the best way to...
3
by: Rajesh | last post by:
Hi, I am using iplanet webserver 4.1. I want to call a java class from ssjs file. But I am not getting the result. I have created a java class file and put it in the folder...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
1
by: kaizhang | last post by:
i installed an IIS on windows 2003 server (with mySQL and php as well). However, i can't get serverside javascript running. Googled for help, nothing useful found. Anyone has experience with SSJS on...
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
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...
0
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...

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.