•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,185 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,495 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1513 | Replies: 3
![]() |
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.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
•
•
Join Date: Oct 2007
Posts: 77
Reputation:
Rep Power: 0
Solved Threads: 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.
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.
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.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
adobe avatar blue gene database dell development drivers energy enterprise firefox games graphics hardware ibm intel intel ibm internet java linux medicine microsoft microsystems mozilla news open open source open-source opengl openoffice operating pdf platform programming ps3 red hat russia software source spam sun super supercomputing system trends ubuntu vista web wesnoth windows xp
- Previous Thread: how to get result with 3 dropdown multiple selectbox via AJAX and a DB
- Next Thread: Javascript Problem....Simple for experts i guess.....



Linear Mode