Click here to Skip to main content
15,889,527 members
Home / Discussions / JavaScript
   

JavaScript

 
SuggestionOff-Topic Pin
Nicholas Marty26-Feb-14 4:00
professionalNicholas Marty26-Feb-14 4:00 
GeneralRe: Off-Topic Pin
Vimalsoft(Pty) Ltd26-Feb-14 4:51
professionalVimalsoft(Pty) Ltd26-Feb-14 4:51 
GeneralRe: Off-Topic Pin
ZurdoDev26-Feb-14 4:53
professionalZurdoDev26-Feb-14 4:53 
AnswerRe: Problem using onbeforeunload in JQuery or Javascript Pin
Kornfeld Eliyahu Peter26-Feb-14 4:34
professionalKornfeld Eliyahu Peter26-Feb-14 4:34 
GeneralRe: Problem using onbeforeunload in JQuery or Javascript Pin
Vimalsoft(Pty) Ltd26-Feb-14 4:58
professionalVimalsoft(Pty) Ltd26-Feb-14 4:58 
AnswerRe: Problem using onbeforeunload in JQuery or Javascript Pin
ZurdoDev26-Feb-14 4:54
professionalZurdoDev26-Feb-14 4:54 
AnswerRe: Problem using onbeforeunload in JQuery or Javascript Pin
Abhishek_RK2-Mar-14 20:41
Abhishek_RK2-Mar-14 20:41 
QuestionOpen form page from network drive and save on the network drive Pin
abmanish7125-Feb-14 7:11
abmanish7125-Feb-14 7:11 
Hi
I am new user I want to open file on network drive like \\10.30.50.88\project\test\product\Daily\Reports\form.html and try to save on \\10.30.50.88\project\test\product\Daily\Reports\data.txt

But when Click on submit button it show error message
Error: Number:-2146827859 Description:Automation server can't create object
Please help me out . I want to replace “d:\\data.txt “ with “\\10.30.50.88\project\test\product\Daily\Reports\data.txt “

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Name</title>
<SCRIPT LANGUAGE='JavaScript'>
function WriteToFile() {
try {
var fso, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
s = fso.OpenTextFile("d:\\data.txt" , 8, true, 0);
s.writeline(document.ietmdata.name.value + ", " + document.ietmdata.email.value + ", " + document.ietmdata.location.value + ", " + document.ietmdata.type.value );
s.Close();
}
catch(err){
var strErr = 'Error:';
strErr += '\nNumber:' + err.number;
strErr += '\nDescription:' + err.description;
document.write(strErr);
}}

</SCRIPT> </head>
<BODY>
<form action="test.hta" method="post" name="ietmdata" >
Name: input type = "text" name="name"<br>
Email: input type="text" name="email"<br>
Location: input type = "text" name="location"<br>
Type: <select name="type" >
<option value="Software"> Software </option>
<option value="Hardware"> Hardware </option>
</select>
<br><br>
<INPUT TYPE=BUTTON VALUE="Submit Data to Text File" önClick="WriteToFile(this.form)">
</form>
</body></html>
SuggestionRe: Open form page from network drive and save on the network drive Pin
Richard Deeming25-Feb-14 7:32
mveRichard Deeming25-Feb-14 7:32 
Questionwatermark val coming in IE11 Pin
nitin_ion24-Feb-14 3:04
nitin_ion24-Feb-14 3:04 
AnswerRe: watermark val coming in IE11 Pin
Kornfeld Eliyahu Peter25-Feb-14 6:10
professionalKornfeld Eliyahu Peter25-Feb-14 6:10 
GeneralRe: watermark val coming in IE11 Pin
nitin_ion25-Feb-14 15:48
nitin_ion25-Feb-14 15:48 
QuestionObfuscated script (likely malware) Pin
Bernhard Hiller23-Feb-14 4:41
Bernhard Hiller23-Feb-14 4:41 
AnswerRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter24-Feb-14 4:12
professionalKornfeld Eliyahu Peter24-Feb-14 4:12 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller24-Feb-14 20:34
Bernhard Hiller24-Feb-14 20:34 
GeneralRe: Obfuscated script (likely malware) Pin
Nicholas Marty25-Feb-14 4:17
professionalNicholas Marty25-Feb-14 4:17 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller25-Feb-14 20:51
Bernhard Hiller25-Feb-14 20:51 
AnswerRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 1:07
DragonHeart33525-Feb-14 1:07 
QuestionRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter25-Feb-14 2:13
professionalKornfeld Eliyahu Peter25-Feb-14 2:13 
AnswerRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 3:27
DragonHeart33525-Feb-14 3:27 
AnswerRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter25-Feb-14 3:30
professionalKornfeld Eliyahu Peter25-Feb-14 3:30 
GeneralRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 3:56
DragonHeart33525-Feb-14 3:56 
GeneralRe: Obfuscated script (likely malware) Pin
jkirkerx1-Mar-14 18:00
professionaljkirkerx1-Mar-14 18:00 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller2-Mar-14 20:15
Bernhard Hiller2-Mar-14 20:15 
QuestionStore form page in csv format Pin
abmanish7122-Feb-14 2:30
abmanish7122-Feb-14 2: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.