473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Way to save form data locally w/o server?

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.

Aug 17 '07 #1
6 24229
gr****@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?
Aug 17 '07 #2
gr****@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.
No. This is a job for local scripting. Use a batch file.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 17 '07 #3
On Aug 17, 7:44 pm, mbstevens <NOXwebmast...@xmbstevensx.comwrote:
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

Aug 18 '07 #4
gr****@mail.com wrote:
On Aug 17, 7:44 pm, mbstevens <NOXwebmast...@xmbstevensx.comwrote:
>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
Aug 19 '07 #5
gr****@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.
Aug 19 '07 #6
gr****@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.
In the Mozilla.org browsers you can use XUL together with JavaScript to
do what you want, a simple search at Google gave the following llink:

http://www.captain.at/programming/xul/
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?
If looking for the smallest simplest http server, then thttp,
http://www.acme.com/software/thttpd/

For handling text, Perl may be the best language to use, otherwise php
is easy to learn and a lot more stable than visualbasic.

I learned and used 'c' several years ago, but I don't even have a 'c'
compiler now.
Poor excuse, you get one for free at http://gcc.gnu.org
--

//Aho
Aug 19 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jake | last post by:
Hi group, I am trying to build a page that allows uploading My ISP only supports Smartupload I am testing on a small hubbed local network, with PWS Any help is appreciated....
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
8
by: kieran | last post by:
Hi, I want to download an image from the web and save it locally. I have spent all day messing about with this and am still no where. We have a firewall so i use the below code. I know it...
5
by: C Watson | last post by:
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data...
4
by: Matt | last post by:
Hi, I would like to save a file locally (on the client computer) in an ASP.net application. It is like the server would return some data that the user can save to a file on his local PC. The ASP...
0
by: Matt Schwartz | last post by:
I have a ASP.NET web application written using VB.NET. I have a data grid, that is sent to the browser as an excel document using the following code Private Sub CreateXLS(ByVal xdatagrid As...
2
by: fmakopo | last post by:
I am trying to save html page using C# because i want to save the page on the server not on the client side. I can do that using Javascript the problem that i am having i want to save the page on...
4
by: Mario Krsnic | last post by:
Hello! I have made an application where user can get reading after entering his name and the name of his partner. I tried to save the names in the database, in the separate table. My solution:...
5
by: MeeMee | last post by:
Hi I have a problem with saving form data to a MS Access database. I am using Windows XP, FrontPage 2003, Access 2003, IIS 5.1 and FrontPage Server Extensions. I have followed several tutorials...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.