I am creating a file using the code below which create a text file, but I don't want any body to access the same, either it should be password protected or it should be encrypted. If encrypted again I have to decrypt the same. Please suggest how to protect the text file.
var fso = new ActiveXObject("Scripting.FileSystemObject");
var write_id;
write_id = document.getElementById('Name').value ;
alert('The data has been written to \n' + write_id);
var s = fso.CreateTextFile(write_id, true,false);
s.WriteLine(document.getElementById('Name').value);
s.WriteLine(document.getElementById('Department').value);
s.WriteLine(document.getElementById('Location').value);
s.WriteLine(score);
s.WriteLine(document.getElementById('countdown').value);
s.Close();
plz. help
Related Tutorials/Questions & Answers:
Urgent query about CreateTextFile using JavascriptUrgent query about CreateTextFile using Javascript Dear All,
I am creating a file
using the code below which create a text file, but I don't want any body to access the same, either it should be password protected or it should
javascript queryjavascript query how to get
javascript variable value into java variable??
i have one value in
javascript variable(var name = value )
i want this name variable value in java variable (string name1
Advertisements
Javascript & AJAX query - AjaxJavascript & AJAX query Hi
This is Venu.I want the coding for
javascript i.e when i select a radio button it should display a text box along with a button(suppose name the button name as Addmore).When i click
About hibernate using strutsAbout hibernate
using struts what are the advantages are occured when
using struts in hibernate?
what are the inconvenient occur in hibernate
using struts in hibernate?
how they are overcome? if any another solutions
Delete Query using HQLDelete
Query using HQL Can we write 'AND' with 'WHERE' clause in delete
query using HQL?
For example:
delete from table name
where field1 = value1 and field2 = value2
The example
query i have written
send mail using JavaScriptsend mail
using JavaScript How can we send mail
using JavaScript?
Hi friends,
You can not send email directly
using JavaScript.
But you can use
JavaScript to execute a client side email program send the email
using select query using hibernateselect
query using hibernate Hi,
can any one tell me to select records from table
using hibernate.
Thanks
Please visit the following link:
Hibernate Tutorials
The above link will provide you different
javascriptjavascript write a program to display implement
about browsers
using javascript Changing background color using JavaScriptChanging background color
using JavaScript Hi Sir
Is there any way to change the background color
using JavaScript ?
Please mention code with your answer.
Hello Friend
Pass the element & color in the given
javascript date validation using regexjavascript date validation
using regex Hi,
I want to validate the date
using javascript. Please help.
<html>
<head>
<title>Validating Date format</title>
<script type="text/
javascript">
Hibernate criteria query using Max()Hibernate criteria
query using Max() What is Hibernate criteria
query using Max()?
You can find out maximum value in hibernate criteria by
using projection. Projection is an interface and a class
Hibernate criteria query using Min().Hibernate criteria
query using Min(). How to find minimum value in Hibernate criteria
query using Projection?
You can find out minimum value in hibernate criteria by
using projection. Projection is an interface
Hibernate criteria query using avg()Hibernate criteria
query using avg() How to calculate average in Hibernate criteria
query using Projection?
You can calculate average of any numeric values in hibernate criteria by
using projection. Projection
Solve using only Javascript loops...Solve
using only
Javascript loops... Write a
JavaScript code,
1) to find a number of unique letters in string. (Eg. if keyword is unique, Unique count will be '4')
2) so that numbers appear in following format,
1
1 2
Calendar In JSP Using JavaScript
Calendar In JSP
Using JavaScript
... in
JSP
using JavaScript. We created the following files for the application... = strar[2]+"-" + strar[0]+"-"+ strar[1];
String
query How can I get query string values in JavaScript?How can I get
query string values in
JavaScript? How can I get
query string values in
JavaScript?
To get a
query string value, you can use JQuery and
JavaScript.. here is the code:
function getParameterByName(name
javascript for textbox or prompt using servlet - JSP-Servletjavascript for textbox or prompt
using servlet Dear sir
I am... = DriverManager.getConnection(url+db,userName,password);
String
query = "select * from employee";
st = con.createStatement();
ResultSet rs = st.executeQuery(
query);
while(rs.next
how to print HTML using javascript or Jqueryhow to print HTML
using javascript or Jquery is there any way to print a document(created
using Html and
javascript) without
using window.print, which works for all the browser specially chrome and firefox, I have used
Hide show HTML forms using javascriptHide show HTML forms
using javascript How to hide a HTML form in my application
using JavaScript?
HTML Code to create checkbox
<...;div id="yourDiv"> ...other forms... </div>
JavaScript function to hide
Html form using JavaScript to display the table contentHtml form
using JavaScript to display the table content HI There, Greetings,
I am new to this java and I need your assistance.
I have created... want to write a Html
JavaScript coding to display the content from database
How to check text in textbox using JavaScriptHow to check text in textbox
using JavaScript How to check text in textbox
using JavaScript
I have a form in HTML that contains text feilds... me.
JavaScript validation example to check text in textfeild
<