On Mar 14, 2011, at 12:00 PM, gs84 wrote:
On 14 mar, 12:48, Frederick Cheung <[email protected]> wrote:
On Mar 14, 10:59 am, gs84 <[email protected]> wrote:> Thanks to
all for your answer.
Can you suggest me another process to face this problem?
What's the wider problem you're trying to solve?
Fred
I want to send file/data to user without showing the file dialog box.
Thanks.
Is this file data something which the user's browser understands how
to process and display? If so, you could try just linking to it. Don't
try to tell the browser what to do with it, just leave it up to the
browser. If the browser understands it and can display it, then it
will. If it doesn't, then it will prompt for a save or a hand-off to a
helper application.
This is basic browser behavior as codified in Mosaic in the mid-90s,
and hasn't changed at all since then. The list of things browsers
understand natively HAS gotten longer since then, but the premise --
that it's up to the browser what to do with whatever you link to -- is
the same.
Walter
--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.