"out_data" is the string instance that contains the generated XML,
"text/xml" is the mime type to be set in the response, and
"sample.xml" is the filename that will be presented to the client as
the name of the
file it attempts to download.
Where i m stuck is , the sample.xml is getting downloaded on desktop.
i want to ask the user to provide the location where he wants to
download the "sample.xml".
i also used browse button to ask location and then send that location
to the filename parameter, in dat case the downloaded file is renamed
as \...\location\..\sample.xml.
and even then the file is saved on the desktop.
Unfortunately, the server has no control whatsoever over what the
client application will do with the file. If your user is using
Firefox, it will usually ask you what you want to do with it. If your
users are using Safari, or Internet Explorer, it will usually simply
save to the default location. Other browsers behave similarly.
Julian.
Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) NEW VIDEO
(#2) OUT NOW!
http://sensei.zenunit.com/