Click here to Skip to main content
15,893,381 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: JavaScript class creation query Pin
Edbert P10-Jul-06 20:55
Edbert P10-Jul-06 20:55 
QuestionReading file from javascript [modified] Pin
theprinc10-Jul-06 4:46
theprinc10-Jul-06 4:46 
AnswerRe: Reading file from javascript Pin
Paddy Boyd10-Jul-06 6:09
Paddy Boyd10-Jul-06 6:09 
GeneralRe: Reading file from javascript Pin
theprinc10-Jul-06 6:15
theprinc10-Jul-06 6:15 
AnswerRe: Reading file from javascript Pin
Guffa10-Jul-06 7:41
Guffa10-Jul-06 7:41 
GeneralRe: Reading file from javascript Pin
dwatkins@dirq.net11-Jul-06 9:46
dwatkins@dirq.net11-Jul-06 9:46 
GeneralRe: Reading file from javascript Pin
User 171649212-Jul-06 8:27
professionalUser 171649212-Jul-06 8:27 
GeneralRe: Reading file from javascript Pin
User 171649210-Jul-06 13:34
professionalUser 171649210-Jul-06 13:34 
As far as I am aware, javascript is forbidden access to your file system except by using an Active X control. In which case, taken from an older version of JScript :

OpenTextFile Method
=============================
var fs, a, ForAppending;
ForAppending = 8;
fs = new ActiveXObject("Scripting.FileSystemObject");
a = fs.OpenTextFile("c:\\testfile.txt", ForAppending, false);
...
a.Close()


FileExists method
=========================
function ReportFileStatus(filespec)
{
var fso, s = filespec;
fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(filespec))
s += " exists.";
else
s += " doesn't exist.";
return(s);
}

Write method:
=============================
function WriteDemo()
{
var fso, f, r
var ForReading = 1, ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject")
f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true)
f.Write("Hello world!");
f.Close();
f = fso.OpenTextFile("c:\\testfile.txt", ForReading);
r = f.ReadLine();
return(r);
}


modified 1-Aug-19 21:02pm.

Questionlogged on users to share a file ? Pin
MickYL10-Jul-06 2:10
MickYL10-Jul-06 2:10 
QuestionIIS 6.0 recycling cause web client to hang Pin
sbundgaa10-Jul-06 2:04
sbundgaa10-Jul-06 2:04 
QuestionOpening dialog boxes using javascript Pin
theprinc10-Jul-06 1:35
theprinc10-Jul-06 1:35 
AnswerRe: Opening dialog boxes using javascript Pin
vinhie4710-Jul-06 17:12
vinhie4710-Jul-06 17:12 
GeneralRe: Opening dialog boxes using javascript Pin
laksh_us10-Jul-06 22:13
laksh_us10-Jul-06 22:13 
Questionhow to use subdomain Pin
Amit Agarrwal9-Jul-06 23:29
Amit Agarrwal9-Jul-06 23:29 
AnswerRe: how to use subdomain Pin
dwatkins@dirq.net11-Jul-06 3:32
dwatkins@dirq.net11-Jul-06 3:32 
GeneralRe: how to use subdomain Pin
Amit Agarrwal11-Jul-06 3:37
Amit Agarrwal11-Jul-06 3:37 
GeneralRe: how to use subdomain Pin
dwatkins@dirq.net11-Jul-06 3:42
dwatkins@dirq.net11-Jul-06 3:42 
GeneralRe: how to use subdomain Pin
dwatkins@dirq.net11-Jul-06 3:51
dwatkins@dirq.net11-Jul-06 3:51 
QuestionPress SPACEBAR or ENTER to activate and use this control Pin
militiaware9-Jul-06 21:02
militiaware9-Jul-06 21:02 
AnswerRe: Press SPACEBAR or ENTER to activate and use this control Pin
Brent Lamborn10-Jul-06 6:08
Brent Lamborn10-Jul-06 6:08 
GeneralRe: Press SPACEBAR or ENTER to activate and use this control [modified] Pin
militiaware10-Jul-06 20:26
militiaware10-Jul-06 20:26 
GeneralRe: Press SPACEBAR or ENTER to activate and use this control Pin
rmccoll4-Aug-06 4:02
rmccoll4-Aug-06 4:02 
Questioncontainer containing multiple dialog boxes Pin
Aqueel9-Jul-06 20:48
Aqueel9-Jul-06 20:48 
QuestionHow to check that file is modified or not using CAPICOM or any solution Pin
Chetan.visodiya9-Jul-06 20:27
Chetan.visodiya9-Jul-06 20:27 
QuestionAsterisk width in css Pin
Clickok9-Jul-06 16:30
Clickok9-Jul-06 16:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.