Re: Saving dynamically created data on client side?



HaJo wrote:
On Aug 20, 10:31 am, HaJo <hajo.sch...@xxxxxxxxx> wrote:
I have a client-side javascript running, the user creates some data.
At a point the data should be saved to his HDD -- I.e. a "Save as...".

Tnx guys for your help here, I did indeed find a satisfactory solution
now. The main pointer came from Thomas:
I assemble the data in JS in a form field. I then submit this to a
server CGI which immediately returns it with Content-type & Content-
disposition correctly set. No need to pop up a window or similar
workarounds, the browser accepts it and keeps the original page
untouched. Beautiful!

You are welcome :) But AISB, as you have server-side scripting to do it,
you should consider making an effort to have that working without
client-side script support at all, so that your application does not break
if for some (probable) reason client-side scripting is unavailable. That
could be as simple as having the server generate, in that event, the form
with the appropriate `input' elements filled in.


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
.



Relevant Pages

  • Re: Automatic HTTP POST methods
    ... I could simply do a server response.redirect along with the parameters. ... in cases where the partner site only accepts data via form POST ... One method was to do a client-side script ... then respond back to the browser with the content. ...
    (microsoft.public.dotnet.general)
  • validating a file upload field
    ... I'm using a file upload form field to allow a person to upload a file from ... their browser. ... what is the proper way to check to see that a file passed to the server ...
    (microsoft.public.dotnet.framework)
  • Re: Got TCP/IP connection, but no file sharing!?
    ... No where can I find that having the Computer Browser Service ... and the server announces itself on the networking using the special ... and why doesn't a workgroup environment work the same ... server) generally acts as the master browser. ...
    (microsoft.public.windowsxp.network_web)
  • Re: =?ISO-8859-1?Q?Can=92t_see_a_compute?= =?ISO-8859-1?Q?r_in_the_network?=
    ... Find Computer Browser ... Find Server ... Find Workstation ... CONFIG and Browser and Sharedaccess are RUNNING. ...
    (microsoft.public.windowsxp.network_web)
  • Re: After setting up the network
    ... Find Computer Browser ... Find Server ... PsService v2.20 - Service information and configuration utility ... CPSServ Comprehensive Networking Services V1.10 - PERRINS2 ...
    (microsoft.public.windowsxp.network_web)

Loading