Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q101

Feedback on: irt.org FAQ Knowledge Base Q101

Sent by Derek Wickersham on July 19, 1999 at 10:52:52: - feedback #313

Comments:
<HTML>
<HEAD>
<TITLE>Signed Scripts Testing</TITLE>
<SCRIPT LANGUAGE="JavaScript1.2">

function setFile(str) {
self.blur();
var frame = new java.awt.Frame();
var dlog = new java.awt.FileDialog(frame, "Save As...", java.awt.FileDialog.SAVE);
dlog.show();
var filename = dlog.getDirectory() + dlog.getFile();
netscape.security.PrivilegeManager.enablePrivilege("UniversalFileWrite");
var outputStream = new java.io.FileOutputStream(filename);
var writer = new java.io.BufferedWriter(new java.io.OutputStreamWriter(outputStream));
writer.write(str);
writer.flush();
writer.close();
outputStream.close();
dlog.dispose();
netscape.security.PrivilegeManager.disablePrivilege("UniversalFileWrite");
}

</SCRIPT>
</HEAD>

<BODY>
<FORM>

<TEXTAREA NAME="input" COLS=20 ROWS=10 WRAP="virtual"></TEXTAREA><BR>

<INPUT TYPE="button" VALUE="Save File" onClick="setFile(this.form.input.value);"><P>

</FORM>
</BODY>

</HTML>



Sent by Bill Thames on February 28, 2002 at 06:36:13: - feedback #3640

Length:
Too short

Comments:
If you really need to store data on the client, you can use individual cookies for each record in a file. The size limitation for cookie data and the cookies limit in your browser will be the greatest limitation to this method.


Sent by Aidan Whiteley on Saturday August 04, 2007 at 16:03:40 - feedback #4885

Worth:

Length:
Just right

Technical:

Comments:
You need to have a look at Google Gears or Adobe Apollo!




©2018 Martin Webb