--- In flexcoders@yahoogroups.com, "Ramsey, Robert L" <robert-
[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have a string variable that is the result of a database lookup
> formatted as a nice csv file.  What I'd like to do is use a button 
to
> let the user save that string locally.  I looked at the 
FileReference
> help, but that seems to be more for the result of a url call.  I 
have
> something like:
> 
> var s:String;
> s="hello, world";
> 
> So I want to let the user download the variable s as a text file.
> 
> Any ideas?
> 
> Thanks,
> 
> Bob
>
Hello, Bob

You can't save string to local file directly. But you can use some 
script on server to implement your idea.
This script should get your string and return it as a file. In this 
case your browser provides standard open/save dialog.

Good Luck.
Peter



Reply via email to