I have an upload tool that I am using in my app where users
can upload a document. It then updates mydata grid with the updated
list of documents for that user. Does any one know of a way that
when they click on the file in the data grid it will open in the
application specifed in the extension. So for instance if it was a
.jpg it would open in an image viewer if it was a .doc it would
open in word
|||
Generally you would just click a button that started the
download, and then your browser I beleive would let you choose?
Can’t remember, but thats really the only way to do it, unless you
are using AIR there might be some new way for a desktop app.

It may be possible to have the data grid make a call to an
ExternalInterface that showed a javascript ‘confirmation’ dialog
that would trigger the browsers open or download logic if it doesnt
work that way in FB.
|||
I did try and just use the download but it doesn’t prompt you
or anything of if you want to save or open it just downloads the
file to your select directory =/. Even if I could just do like an
onclick event on my datagrid to hit the URL of the document I think
that would work also just not sure how to do that.
|||
Are there any ideas on how to do this?
|||
I think the only way to do this would then be to have a
javascript popup window (like prototype windows) open up in
response to an ExternalInterface call, with a ‘Download/Open the
file’ button, which would trigger the file save/open dialog in your
browser.

Related posts:

  1. how to onclick open a pdf to print?
  2. Open Illustrator template file (open original) for editing?
  3. Download File/Open .pdf from Flex UI
  4. Download video file and open in media player
  5. Using OnClick and Open browser window

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD