LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2006, 07:48 PM   #1
davidnye
LQ Newbie
 
Registered: Sep 2005
Location: Eau Claire, WI USA
Distribution: Mandriva 10.2
Posts: 16

Rep: Reputation: 0
JavaScript question - how to save a created document within browser


I'm a JavaScript newbie working on a HTML/JavaScript program to take user form data, convert it to a narrative form (like "<user's name> is a <a> year old <b> who comes in for <c>"...), and save the resulting document. I realize that JavaScript does not allow writing to a file but I was thinking I could save the resulting narrative document manually using the browser's 'File/Save Page As' feature. I can get the narrative to display in place of the form but it apparently isn't within a saveable document, because I can't save it or even duplicate the page in another window. I named the form 'x', and can print the name for example with 'document.write(x.name.value)'. Anyone know how to do make document.write print into a saveable document, or is this not possible? I could print the narrative back into a large text field in the original form and then save it but this would be an unsightly kludge. Thanks for any ideas.
 
Old 09-05-2006, 11:36 AM   #2
davidnye
LQ Newbie
 
Registered: Sep 2005
Location: Eau Claire, WI USA
Distribution: Mandriva 10.2
Posts: 16

Original Poster
Rep: Reputation: 0
Never mind, problem solved. It appears to be a bug in Konqueror. Works fine in Firefox.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript browser crash renatomilani Linux - General 12 10-03-2006 10:44 PM
how do i create a document, then a directory and save the document in it. jtdodge Linux - Newbie 9 06-15-2005 11:03 AM
Router Does Not Save Config (javascript??) 1veedo Linux - Software 1 03-01-2005 06:20 PM
JavaScript/browser speed test WilliamS Slackware 0 02-14-2005 08:44 AM
FC3+nfs+KDE+openoffice(Can't modify a document and save it) RPC error antdevries Fedora 0 12-09-2004 07:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration