0

hi all,
i need to open indesign, framemeker, pdf files using java script. i have tried in many ways but i cant get the result. pls help me.
thanks in advance
hidash.

2
Contributors
3
Replies
5
Views
9 Years
Discussion Span
Last Post by ~s.o.s~
0

What do you mean by 'open PDF' files using Javascript? You need the appropriate softwares for opening the respective files e.g. Acrobat reader for PDF files. The maximum you can do is make the browser open up a prompt box which would give you the option of either saving the file to your local system or opening it with a program of your choice and this can be done using plain HTML; no javascript required. Browser embedded Javascript is as such not capable of *reading* files.

0

hi,
thanks for ur response. whatever u said is correct but its not solve my problem. i have already done like that. i need to open the application using java script. its my requirement.
my file download popup should not come. and no files should be download in the local machine.
the files should be fetch from the server and it should open in its corresponding local machine.
i trust u can understand my problem. pls help me S.O.S....
Advance thanks
hidash.

0

Javascript can't spawn processes and it's a part of the browser security model; you can't do anything about it. Maybe VBScript might have something in store for you, but then again, your application won't work for non-windows users. Your best bet would be to set the appropriate mime type (content type) of the response and hope for the best.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.