Link to open pdf file in new window

I want to create a link on a web page to open a pdf file in a
new window. I used the "on click" "open brower window". Which does
open the pdf file, but not in a new window. How do I open it in a
new window?

Your code is a mess:
** there is no apparent reason for the span:
<td><span class="style1"
onfocus="MM_openBrWindow('pdf/PR_launch.pdf','','')">Milford, OH
So change that line to:
<td>Milford, OH
** here you have two double quotes before This.
<a title="”This" class="pdfFile"
onclick="MM_openBrWindow('pdf/PR_Launch.pdf','','')"
Change it to this, (with some other improvements):
<a title="This" class="pdfFile"
onclick="MM_openBrWindow(this.href,'','');return false"
** This is code salad:
href="”PR_Launch.pdf”" link="" will="" open="" a=""
.pdf=""
file.”="">More (PR_Launch.pdf,
230kb)</a></span></td>
Change it to:
href="pdf/PR_Launch.pdf">More (PR_Launch.pdf,
230kb)</a></td>
If you continue to have trouble, you might find my divaPOP
Extension
easier, and far more powerful. It automat6ically opens pdf
files and
links to all external files in a popup window without your
needing to
code each link:
http://www.divahtml.com/products/divaPOP/open_popup_windows.php
E. Michael Brandt
www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia

Similar Messages

  • How to make fileDownloadActionListener to open pdf file in new window

    Hi all ,
    i used the component [ fileDownloadActionListener ] to make download pdf file ,
    my question is
    How make this components to download and open file in new window ?
    Jdeveloper version 11.1.2.3

    Here is a sample http://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/
    or http://mahmoudoracle.blogspot.de/2012/06/genius-adf-buttons.html#.UZygjrVM_Lk
    in General you can use the technique described here http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ and configure hte browser to püen the doenloaded file using the configured application (pdf reader in your case).
    Timo

  • Please help to open PDF file in new window

    Hi!
    I have a My.pdf file, and file Other.pdf located in subfolder Myfolder.
    For example, my.pdf located on c:\Mydocs\My.pdf and Other.pdf located in c:\mydoc\Myfolder\Other.pdf
    I try make plugin that open Other.pdf in subfolder Myfolder, no matter in where My.pdf is located on computer.
    I found in SDK API, that I need create a new window for open pdf file, using WinAPI function - CreateWindow:
    HWND externHWnd = CreateWindow ("ExternalWindow", "PDFViewer",WS_OVERLAPPEDWINDOW,50, 50, 500, 500, 0, 0, gHINSTANCE, NULL);
    I copy example into Visual Studio, but in example there no gHINSTANCE is undeclared.
    or plese provide working code for my task
    Please help

    In which part of the SDK did you look.
    Do you really mean a plugin (control Acobat from inside - can only be written using C#)
    oder do you mean control/work with Acrobat from an external application (like vb,..) via activeX (=IAC).
    br, Reinhard

  • How to open PDF file in new window as default

    I have .pdf documents into which I have inserted links to other .pdf documents using pdfEdit995
    (I am a 77-year-old pensioner recording monumental inscriptions, not very computer literate and not able to afford expensive applications !) 
    The links in the temp.ps file (which pdf995 creates first) look like :-
    [ /Rect [85 225 107 228]
    /Border [ 0 0 0 ]
    /Action /Launch /File (.\\Another Folder\\TARGET FILE.PDF)
    /Subtype /Link
    /ANN pdfmark
    The links work fine, but open in the same window, which is annoying as it is then neccessry to re-open the original document, scroll down to the required page and find the next link.
    pdf995 support say that perhaps Adobe reader can be set to open in a new window, but I want this to be the default when I circulate my file to interested people, so would prefer to modify the links.
    Can anyone help with a smple solution ? (I also believe in Santa Claus !)
    System: Vista; Reader X 10.1.0

    I don't know if you can change this in the PS file, but if you had Acrobat you could embed the following code into your file, that will make sure the links open in a new window. However, you should be aware that this code will change the preferences at the application level, which some people might not appreciate.
    The code is:
    app.openInPlace = false;

  • Safari 3.0.3 won't open PDF files in new window & won't download to desktop

    When I click on a PDF file at a website Safari opens a new browser window but the window is always blank. The PDF file never appears. When I try to download the file to the desktop (right click) it doesn't download. I've read everything about the PDF problem posted at any relevant forum here. I've tried the Quicktime MIME approach. Didn't work. I've disabled the "open PDF in browser" option in Adobe Reader. Didn't work. I've looked for the Adobe plug-in to relocate. Didn't work. I downloaded Adobe Reader 8. Didn't work. When I make Adobe the default rather than Preview, Safari still doesn't open the PDF files or download them. Is there anyone in the computing world who actually can fix this problem? And why hasn't this recurring problem that has affected so many others been escalated to Apple for resolution???!!!

    Installing the newest version of Adobe Reader and restarting Safari fixed this issue for me.

  • Open a generated pdf file in new window

    Dear all,
    I'm using JDev ADF 11.1.1.4.0
    I use the command button method to generate pdf file with JasperReports and I store it into the public folder /reports/test5.pdf. To open this file I can use goLink or goButton with target frame _blank, but how can I open this file automatically after generation?
    I was reading about fileDownloadActionListener, but it's not what I need, I just want to open the file in new window browser.
    Any help will be appreciated.
    Regards,
    Wojtek.

    try this
    HttpServletResponse response = (HttpServletResponse) FacesContext
                                      .getCurrentInstance().getExternalContext().getResponse();
                       ServletOutputStream servletOutputStream;
                       servletOutputStream = response.getOutputStream();
                       byte[] bytes = null;
                       JasperDesign jasperDesign;
                                try {
                                        jasperDesign = JRXmlLoader.load(ios);
                                        jasperReport = JasperCompileManager.compileReport(jasperDesign);                
                                        JRPdfExporter exporter = new JRPdfExporter();
                                        JasperPrint jasperPrint;
                                        jasperPrint =
                                                JasperFillManager.fillReport( jasperReport, parameters, connection );
                                    } catch (JRException e) {
                                            e.printStackTrace();
                                bytes =
                                JasperRunManager.runReportToPdf(jasperReport,parameters, connection);
                       response.addHeader("Content-disposition", 
                       "attachment;filename=sale.pdf"); 
                       response.setContentType("application/pdf");
                       response.setContentLength(bytes.length);
                       servletOutputStream.write(bytes, 0, bytes.length);
                       servletOutputStream.flush();
                       servletOutputStream.close();
                       context.responseComplete();
                            } catch (IOException e) {
                        e.printStackTrace();
                    } catch (JRException e) {
                         e.printStackTrace();
                    }

  • Opening PDF Document in New Window

    Hi,
    I have requirement to open pdf document in new window. I'm using Travel Expense form. I'm using the FM PTRM_WEB_FORM_PDF_GET. When I give 'X' to i_display_form, it displays the pdf document in same session or window. But I would like to open the pdf file in new window.
    The FM gives me pdf data of type RAWSTRING. Is there any FM or class where I can pass this data and open it in New Window.
    Can anyone please suggest on this.
    Regards,
    JMB

    download it using  gui_download and use cl_gui_frontend_services=>execute to execute that pdf file

  • I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix

    I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix.
    Why after 6 year's this has changed?
    I would like to open PDF's straight from Window Mail.

    Good day Jeff.
    I am running most current Adobe Reader X.
    Tks Mark

  • Problems opening .pdf files created in Windows in MAC

    My clients that are using Macs are having problems opening password protected PDFs that I created in Windows. Any suggestions?

    Are your clients using Adobe Reader on Mac, or the built-in Mac OS Preview?  Preview does NOT support the full PDF standard :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 26 Sep 2011 15:04:18 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Problems opening .pdf files created in Windows in MAC
    Problems opening .pdf files created in Windows in MAC
    created by Hollcy<http://forums.adobe.com/people/Hollcy> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3939175#3939175

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Linking button to PDF file with published Windows Executable

    Hello all,
    I've been using Captivate 1 for years. I have always linked
    buttons to PDF files. The only thing I really ever had to remember
    was to take away the local directory address so where as only the
    filename was left. When I burned to CD I would just leave
    everything top-level.
    Well, for some reason now Captivate won't launch my pdf file
    (and yes I put the ".pdf"). It launches my web browser looking for
    a web address. Here's what I do. I create a new text or image
    button, next I select "open url or file". Finally I select the file
    through the browse window. I immediately take off the local
    directory before the filename because everything is located
    top-level on the CD's I produce.
    Please help, anyone. BTW I am experiencing the same thing on
    Captivate 2. I'm afraid I'm doing something silly wrong since it's
    been awhile. Thanks in advance .

    Hi Charles,
    Does by any chance you have upgraded your Flash Player
    recently? Flash Player 8 and above have restriction on not
    accessing the local files directly?
    thanks

  • Open pdf file in separate window?

    I'm not seeing option to open a link to pdf file in separate window. Is it possible? On this page I would like visitors to be able to open the pdf while continuing to listen to the audio file that's associated with it (audio clips towards bottom of page)
    http://www.imaginerecoveryonline.com/IMAGINERECOVERYONLINE.COM/THE_JOURNEY_1.htm l
    Thanks

    Okay, so where are you publishing your site to - MobileMe or an external server such as GoDaddy?
    If to GoDaddy, then to upload directly to the server, as I explained in my previous post, then you would need to use Cyberduck and upload your pdf file to your public_html file or whichever file you need to upload to - it could also be 'www', or 'htdocs'.  Upload your pdf file here and then go back to iWeb and create the link to your pdf file by linking to it directly on the server - don't hyperlink to a file, but to your external server, which will be http://www.domain.com/name of your pdf file.pdf.  This is all you need do and then select open in a new page and your link to your document has been created.
    If publishing to MobileMe, then you need to upload the pdf file directly to your iDisk.  You would then make the link to the url http://web.me.com/username/sitename/name of pdf file.pdf and select to open in a new page.
    That is what is meant by uploading to a server and you then have to create the link directly to where your file has been uploaded to and not the file itself.  You need to enter the external url which will be your domain name or your MobileMe url, plus the username and site name.

  • How can I open PDF files in separate window??? My PDF files are openning in the same window

    How Can I open multiple Pdf files in separate windows?
    they are all opening in the same window.
    And I cant find where I can email Adobe support...Really??? no contact support???? that sucks.

    not really. it was opening in seprate windows and then it just change.
    can you please find out and let me know how to make it open in seprate windows like it use to before.

  • Can not use scroll mouse in html tab when open pdf file in new tab with middle button but will avaliable only after switch to pdf tab and switch back to html

    When I open a "pdf" file in new tab with middle mouse click. After few second my mouse will not able to scroll in page that I read. But it will be able to scroll only after I click to any opened pdf tab and click on pdf document and click back on previous tab to continue reading. It is not only happen on my laptop also on my desktop too. (winxp 4gb/8gb ram core2 duo 2.66)

    There's a Bug filed about that issue.

  • How do you open a link within a PDF in a new window?

    I created a PDF that will be viewed in a browser. Is there a way to set the links within the PDF to open in a new window?

    Did you get an answer to this?   I am having the exact same issue.  My source html document has a link which specifies a target of _blank, but when I generate a pdf from that html doc, view the PDF in my browswer, and click the link, it overlays the PDF instead of opening a new window with the linked URL.  I've seen this posted as an issue a number of times, but have yet to see a solution.

Maybe you are looking for

  • Vista Ultimate 64 bit Upgrade on Macbook?

    Gents, I'm working on trying to install Vista 64 bit Ultimate on my Macbook in place of XP Home. (Yeah, Home only sees 1 core, and is a 32 bit OS with only 3 GBs of my RAM showing.) Anyway, how do I go about installing Vista 64 bit ultimate on here?

  • What's wrong with this trigger?

    hi! i am creating a trigger that calls a procedure, it showed the following message. what's wrong? SQL> create or replace trigger phang.t2 after logon on portal30.schema 2 begin 3 call phang.dob; 4 end; 5 / Warning: Trigger created with compilation e

  • Why can't I take email attach. videos and put them into dropbox or somewhere to save them?

    I am using an ipad 4th generation,  version 7.0.2,  IOS 7.1.2.  Memory 16GB,  processor dual coreA6X. My problem is: recently my daughter sent emails with video attachments of my granddaughter swimming. They came as 3MP and easily opened.  I now woul

  • Duplicating contacts with Gmail

    Hi All, On my 4s in the contacts settings I have Gmail and Iphone ticked to show contacts. This duplicates a lot of contacts so I need to delete the duplicates. I need both Gmail and Iphone settings ticked as the Gmail is my work contacts with our fu

  • KANBAN External Supplier with MRP

    We have a requirement to use KANBAN for external vendors and also do forecasting for same materials using MRP. Does standard SAP support this? We are using replenishment strategy 02 ( with SA's ) but it is not working. Any ideas ??