• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML Forms saving data on the Client PC - possible without JavaScript?

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there

I have searched the internet for an answer but found none.

My knowledge of HTML and Javascript is really limited as I am a Java Swing and JavaComms programmer.

What I need to do it have a very basic HTML page visible in my non-web Java application for the user to be able to fill out a customer satisfaction survey.

Once the user has completed the form, they must push a button and I would like the user's selections to be saved into a file in any format (XML, CSV or anything) on the user's computer. From then I am programatically handling their selections with Java.

Is there a way to do this without scripting, ie plain HTML or am I going to have to use scripting?

Many kind regards,
Rachel
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTML and JavaScript can not save data. You need to use a server side langugae to do it.

Eric
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I see that when using a mailto in the form, it opens the outlook window with that string of user inputs. Is there any way to direct that kind of string output to a file?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. In fact, unless resorting to an ActiveX control in IE or a signed applet, you cannot use web technology to save anything on the client system except cookies.
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, in a word, damn. But thanks for the advice.

Many kind regards,
Rachel
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic