LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08: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, 12:36 PM   #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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:44 PM
how do i create a document, then a directory and save the document in it. jtdodge Linux - Newbie 9 06-15-2005 12:03 PM
Router Does Not Save Config (javascript??) 1veedo Linux - Software 1 03-01-2005 07:20 PM
JavaScript/browser speed test WilliamS Slackware 0 02-14-2005 09:44 AM
FC3+nfs+KDE+openoffice(Can't modify a document and save it) RPC error antdevries Fedora 0 12-09-2004 08:17 AM

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

All times are GMT -5. The time now is 06:03 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