473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

View PDF

Slaxer13
106 64KB
Hi people,
This is my first attempt at javascript so don't mind my lack of knowledge. Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?

Any info needed just let me know.
Thanks for the help.
Slaxer13
Jun 5 '15 #1

✓ answered by Dormilich

Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?
you have to download it in any case–you can’t see something that’s not there.

other than that (as already mentioned) whether the PDF is shown in the browser or saved to disk, is a browser setting.

7 1520
Rabbit
12,516 Expert Mod 8TB
As far as I'm aware, that's a browser setting, not something you can control from javascript.
Jun 5 '15 #2
Dormilich
8,658 Expert Mod 8TB
Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?
you have to download it in any case–you can’t see something that’s not there.

other than that (as already mentioned) whether the PDF is shown in the browser or saved to disk, is a browser setting.
Jun 6 '15 #3
computerfox
276 100+
You can have an embed object or an iframe with the path to the PDF. I don't believe you have to download the PDF as many sites display it in the browser THEN you have the option of saving it. No need for JavaScript, simply embed with a path. The file might be cached, but not downloaded.
Jun 6 '15 #4
Rabbit
12,516 Expert Mod 8TB
Cached means downloaded, but not necessarily saved. If you can see it in your browser, then it's been downloaded. And usually that also means it's saved to the disk in a temporary cache location.

With PDFs and other third party software, whether it is rendered in the browser window or in it's own separate window is a setting in the browser plug in.
Jun 6 '15 #5
Slaxer13
106 64KB
So basically in every browser even when i see a pdf online it has been download even if only in a temp right?
Jun 8 '15 #6
Dormilich
8,658 Expert Mod 8TB
that’s correct.
Jun 8 '15 #7
Slaxer13
106 64KB
Thank you for all the help ;)
Jun 8 '15 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: js | last post by:
I am trying to create a primary key constraint on a view in the following statement. However, I got an error ORA-00907: missing right parenthesis. If the CONSTRAINT clause is removed, then the...
3
by: M. Mehta | last post by:
It seems that you can not create a materialized view if you are using outer joins...can someone please verify this? Thanks M. Mehta Please follow my example below: created 2 tables:
4
by: Ryan | last post by:
Bit of an obscure one here, so please bear with me. I have two copies of a database which should be identical. Both have a complex view which is identical. I can open the views and the data is as...
8
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical)...
4
by: Neil | last post by:
I just resolved a strange situation I was having with an ODBC linked SQL 7 view in an Access 2000 MDB file, and I'm trying to get some understanding as to what happened. The linked view was...
12
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
0
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
6
by: Neil | last post by:
I had a strange situation with a view in SQL 7, that I could use some input on. I had a very simple view -- select a, b, c from table1 where x=y and z=q. Field a in table1 originally was varchar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.