HTML

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentHTML

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 28th, 2012, 09:34 PM
bheema bheema is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 bheema User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 4 sec
Reputation Power: 0
HTML form using javascripct save in CSV format

I want to save the form using this makeFile() function.I want it to save the whole form in csv format..How can i make it read the whole file...TQ...n Am i doing it correctly?Please help me solve this problem...

function makeFile(){
var fso = newActiveXObject("Scripting.FileSystemObject");
var fileLoc = "E:\sample.csv";
var file = fso.CreateTextFile(fileLoc, true);
file.writeline();
file.Close();
alert('File created successfully at location: ' + fileLoc);
}


<form name="form1" action="" method="get">
TESTER <input type="text"/> DATE <input type="text" /> EMP NO <input type="text" /> 6S DONE <input type="text" />

<br />
<br />

WW <input type="text" size="8"maxlength="8"/> NAME <input type="text" /> SHIFT <input type="text" />

<br />
<br />
<br />

PASSOVER (Please verify Summit Receipe & Storm before start shift)

<br />
<br />
<br />


Summit Receipe OK ?
<select name="">
<option value="" style="display:none;"></option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>

<br />
<br />

Motif/ Storm OK ?
<select name="">
<option value="" style="display:none;"></option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>

<br />
<br />
<br />

<p>
<input type="button" value="Add" onclick="addRowToTable();" />
<input type="button" value="Delete" onclick="removeRowFromTable();" />
</p>
<p>
</p>
<table border="1" id="tblSample">
<tr>
<TH>Num</TH>
<TH>Lot Number</TH>
<TH>Location</TH>
<TH>Total In</TH>
<TH>1 * Test</TH>
<Th>2 * Test</TH>
<TH>3 * Test</TH>
<TH>Total Out</TH>
<TH>Lot Status</TH>
<TH>Remark</TH>

</tr>
</table>

<br />
<br />
<br />
<input type="button" value="Add" onclick="addRowToTable2();" />
<input type="button" value="Delete" onclick="removeRowFromTable2();" />
</p>
<p>
</p>
<table border="1" id="tbl">
<tr>
<TH>Num</TH>
<TH>Entry</TH>
<TH>Down</TH>
<TH>Up</TH>
<TH>Failure Mode/ Action/ Remark</TH>
<Th>D/T</TH>
<TH>Attended By</TH>

</tr>
</table>
<br />
<br />
<input type="submit" value="Submit" onclick="makeFile();"/>
</form>
</div>
</body>
</html>

Reply With Quote
  #2  
Old December 19th, 2012, 11:26 PM
nathanzgmm2 nathanzgmm2 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 nathanzgmm2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 45 sec
Reputation Power: 0
Hi, i am new in HTML and Java scripting. I check your script but it dose not give any display.... i think it should have problem.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentHTML > HTML form using javascripct save in CSV format


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap