PDA

View Full Version : HTML Forms on the Client PC - possible without JavaScript?


RachelSwailes
01-25-2005, 07:42 AM
Hi there

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

I am not a HTML and Javascript guru as I am a Java Communications programmer. So I hope that my question is not too n00b!

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

Kravvitz
01-26-2005, 04:26 PM
That can't be done by HTML alone.

Why do you want to save the form on the user's computer iinstead of on the server?

RysChwith
01-26-2005, 04:36 PM
Less server load, probably. If it's a relatively small amount of information, you might be able to accomplish it with cookies. I don't know enough about Java to tell you how it interfaces with them, but you can find plenty of tutorials on the web about how JavaScript handles them. That's as close as you're going to come to a simple solution, though.

Rys

raghavan20
01-28-2005, 05:25 PM
Normally, we can use one of the server-side languages, for ex. asp to store the data into a database like MSAccess.

Or as our friends said, you can store the same in the client computer in the form of cookies. You can store cookies by the help of simple code in asp.

If you are interested in the answer, i will send you the sample codes to implement the solution in both ways.

Raghavan