HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 Dev Shed Forums Sponsor:
  #1  
Old November 17th, 2000, 02:39 AM
Santhosh Santhosh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 Santhosh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old November 17th, 2000, 09:33 AM
dorward's Avatar
dorward dorward is offline
Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 23 dorward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<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.


Reply With Quote
  #3  
Old November 24th, 2000, 02:26 PM
whitedog whitedog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 whitedog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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....

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > How do I save information to a text file using only HTML


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT