DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   how to open indesign, pdf, framemaker files using java script (http://www.daniweb.com/forums/thread122086.html)

hidash_in May 2nd, 2008 8:02 am
how to open indesign, pdf, framemaker files using java script
 
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.

~s.o.s~ May 3rd, 2008 12:41 pm
Re: how to open indesign, pdf, framemaker files using java script
 
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.

hidash_in May 5th, 2008 2:53 am
Re: how to open indesign, pdf, framemaker files using java script
 
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.

~s.o.s~ May 5th, 2008 2:23 pm
Re: how to open indesign, pdf, framemaker files using java script
 
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.


All times are GMT -4. The time now is 11:19 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC