Click here to get back home

Way to save form data locally w/o server?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Way to save form data locally w/o server? greg_e 08-17-2007
Get Chitika Premium
Posted by greg_e on August 17, 2007, 7:23 pm
Please log in for more thread options


Is there a way to create a form in a local html file where the
contents of the form are written to a local file when a 'save' button
is selected?

It would be nice if it was as easy as changing "somesite.com" to
"file:///C:/whatever" and "post" to "save"... in the following form:
<form action = "somesite.com" method="post">
<p> <textarea name="Text" rows="20" cols="80"> </textarea>
<input value="Send" type="submit"><input type="reset"> </p>
</form>

I would like to do this without using javascript, and without having
to set up a local server to serve the form.

Any help appreciated.


Posted by mbstevens on August 17, 2007, 7:44 pm
Please log in for more thread options


greg_e@mail.com wrote:
> Is there a way to create a form in a local html file where the
> contents of the form are written to a local file when a 'save' button
> is selected?
>
> It would be nice if it was as easy as changing "somesite.com" to
> "file:///C:/whatever" and "post" to "save"... in the following form:
> <form action = "somesite.com" method="post">
> <p> <textarea name="Text" rows="20" cols="80"> </textarea>
> <input value="Send" type="submit"><input type="reset"> </p>
> </form>
>
> I would like to do this without using javascript, and without having
> to set up a local server to serve the form.
>
> Any help appreciated.
>
It is not really that hard to set up a local server with CGI or LAMP, if
you feel you really *must* use a local html file.

On the other hand, Python comes with Tk and has hooks to other
easy to use GUI packages, which might make more sense to use locally.
Perl and Ruby have similar hooks. Is there anything really magic
about an html file for your uses?

Posted by greg_e on August 18, 2007, 5:45 pm
Please log in for more thread options


> gre...@mail.com wrote:
> > Is there a way to create a form in a local html file where the
> > contents of the form are written to a local file when a 'save' button
> > is selected?
>
> > It would be nice if it was as easy as changing "somesite.com" to
> > "file:///C:/whatever" and "post" to "save"... in the following form:
> > <form action = "somesite.com" method="post">
> > <p> <textarea name="Text" rows="20" cols="80"> </textarea>
> > <input value="Send" type="submit"><input type="reset"> </p>
> > </form>
>
> > I would like to do this without using javascript, and without having
> > to set up a local server to serve the form.
>
> > Any help appreciated.
>
> It is not really that hard to set up a local server with CGI or LAMP, if
> you feel you really *must* use a local html file.
>
> On the other hand, Python comes with Tk and has hooks to other
> easy to use GUI packages, which might make more sense to use locally.
> Perl and Ruby have similar hooks. Is there anything really magic
> about an html file for your uses?

I basically just need a local page I can load in Firefox that will
make Firefox act like notepad, where you can save a text area to a
file, but I don't even need to be able to select the filename, like
you can do with notepad - the filename can be hardcoded.

If there is no way to do this without setting up a server and
installing Perl, etc. to process the script, what is the smallest &
simplest server, and what is the smallest and simplest script
processor? I don't need more functionality, and doubt I will ever use
it for anything else.

I learned and used 'c' several years ago, but I don't even have a 'c'
compiler now.

Thanks




Posted by Jonathan N. Little on August 18, 2007, 8:07 pm
Please log in for more thread options


greg_e@mail.com wrote:
>> gre...@mail.com wrote:
>>> Is there a way to create a form in a local html file where the
>>> contents of the form are written to a local file when a 'save' button
>>> is selected?
>>> It would be nice if it was as easy as changing "somesite.com" to
>>> "file:///C:/whatever" and "post" to "save"... in the following form:
>>> <form action = "somesite.com" method="post">
>>> <p> <textarea name="Text" rows="20" cols="80"> </textarea>
>>> <input value="Send" type="submit"><input type="reset"> </p>
>>> </form>
>>> I would like to do this without using javascript, and without having
>>> to set up a local server to serve the form.
>>> Any help appreciated.
>> It is not really that hard to set up a local server with CGI or LAMP, if
>> you feel you really *must* use a local html file.
>>
>> On the other hand, Python comes with Tk and has hooks to other
>> easy to use GUI packages, which might make more sense to use locally.
>> Perl and Ruby have similar hooks. Is there anything really magic
>> about an html file for your uses?
>
> I basically just need a local page I can load in Firefox that will
> make Firefox act like notepad, where you can save a text area to a
> file, but I don't even need to be able to select the filename, like
> you can do with notepad - the filename can be hardcoded.
>

No you cannot. HTML forms post to server-side scripts, so you *need* the
server. If you don't want the server then your must use the OS, put a
shortcut to a text file and be done with it...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by Harlan Messinger on August 19, 2007, 7:00 am
Please log in for more thread options


greg_e@mail.com wrote:
> I basically just need a local page I can load in Firefox that will
> make Firefox act like notepad, where you can save a text area to a
> file, but I don't even need to be able to select the filename, like
> you can do with notepad - the filename can be hardcoded.

Is this because Notepad is missing from your computer and you need a
work-around?

Anyway, no: there is no "save" option for HTML forms.

Similar ThreadsPosted
Post data to server from javascript on client side January 17, 2005, 3:47 pm
Options for real-time plotting of server-side data? October 19, 2005, 12:36 pm
HTML form (XForms) --> XML Document without a web server? November 26, 2007, 11:33 am
retrieving data from a form August 28, 2004, 6:21 pm
Adding Web form data to a new row of an excel file February 14, 2005, 8:51 am
tools for handling form to e-mail data June 10, 2005, 4:50 pm
How to sort form field data in E-mail? December 21, 2005, 9:03 am
Converting HTML Form Data into Webpage Output ? January 17, 2005, 1:06 pm
form data passed from an asp file to an aol e-mail account June 22, 2006, 9:28 am
Collect and store form data entered by site visitors November 22, 2005, 5:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap