|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have to supply a floppy to some users for a marketing survey. There will be an HTML file which the users has to select the answers in it. Once the user clicks the submitt button, the information he has selected would have to be stored to a text file in the same floppy. The floppy will be then sent back to the Survey Dept and the information will be extracted out into the main database for survey statistics.
|
|
#2
|
||||
|
||||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Santhosh:
Once the user clicks the submitt button, the information he has selected would have to be stored to a text file in the same floppy.[/quote] The short answer is that it isn't possible. Webpages simple are not allowed to save files, only server side scripts can. A (rather nasty) work around you could try would be to run a tiny webserver (possible a java application) which would serve the form and a processer (maybe jsp) to save the file. |
|
#3
|
|||
|
|||
|
OK, You can do so if You use a trick... its
not quite HTML but all coded into the HTML-File. The trick is, import the java save option with javascript: netscape.security.PrivilegeManager.enablePrivilege("UniversalFileAccess"); // requires Object Signing var dos = new java.io.DataOutputStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(file),512)); dos.writeBytes(document.objectwithcontenttosave.value + "n"); dos.flush(); hope this helps.... |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > How do I save information to a text file using only HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|