Open html file in new window it is opening in calling browser.

Hi ,
Am using adf 11.1.1.5 jdev.
I have a pop in which pdf,html and rtf file extension are mentioned in drop down list . As i select htlm and fire command button .
The generated html file is opening in the same browser which is replacing the calling page . I want to open in new window .
thanks .

Hi,
iff you use ADF Faces, use a goLink with a target to _blank. If you don't use ADF Faces, provide more details to the question
Frank

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

  • 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

  • How to open html attachment in new window?

    My application has a feature to download different types of files(pdf, xls, html)
    When user clicks on the respective links, a popup with Open, Save and Cancel option will come up.
    Now the problem is when the attachment is html and user clicks Open, it opens in the main window.
    I want it to be opened in a new window. It works fine for all other types of attachments.
    Find below by code:
    os = response.getOutputStream();
    response.setHeader("Content-Disposition", "attachment;filename=document"+strDocExtn);
    response.setContentType(strContentType);
    response.setBufferSize(4096);
    response.setContentLength(bByteArray.length);
    os.write(bByteArray, 0, bByteArray.length);
    os.flush();
    os.close();strContentType and strDocExtn is dynamic
    1. For html files it will come as text/html and .htm
    2. For pdf files it will come as application/pdf and .pdf
    similarly for other types..
    Only html is giving me headache :(

    target="_blank" did not work.
    The attachment does not open directly. In other words, i do not use href.
    The link is having an onclick event, which in turns calls the struts Action class and the response is returned as an attachment.
    <a href="#" onclick="javascript:openAttachment(this.value)" value="123">And the value is unique id with which I can find to file to be downloaded.
    Again the file I cannot access directly. I get it as byte array, which I put it in to my response.

  • Open download file in new window.

    Hi,
    I m using oracle 11g and Apex4.0.2 version
    Browser IE8.
    I m downloading PDF file when a button is pressed.
    The code will be
    htp.init;
    OWA_UTIL.MIME_HEADER(NVL(L_V_MIME,'application/octet'),FALSE);
    owa_util.http_header_close;
    WPG_DOCLOAD.DOWNLOAD_FILE(BLOB_content);
    It works fine by opening the pdf file.
    But I need the pdf file to be opened in new tab page or in new window.
    Is it possible?

    vk,
    it seems your page process is not triggering or it was not working quite right in the first place.
    It should be something lke this:
    Name: DOWNLOAD_FILE
    Type: PL/SQL anonymous block
    Process Point: On Submit - After validations
    When Button Pressed: DOWNLOAD
    Source
    /* if the BLOB content is stored in wwv_flow_files: */
    DECLARE
      l_blob_content wwv_flow_files.blob_content%TYPE;
      l_mime_type    wwv_flow_files.mime_type%TYPE;
    BEGIN
    SELECT blob_content, mime_type
    INTO  l_blob_content, l_mime_type
    FROM  wwv_flow_files
    WHERE  ... /* how you access your file */
    htp.init;
    OWA_UTIL.MIME_HEADER(NVL(l_mime_type,'application/octet'),FALSE);
    owa_util.http_header_close;
    WPG_DOCLOAD.DOWNLOAD_FILE(l_blob_content);
    --apex_application.stop_apex_engine;  /* APEX 4.1 and above */
    apex_application.g_unrecoverable_error:= true;  /*before APEX 4.1 */
    END;Jens

  • 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;

  • Problem opening excel file in new window

    Hi,
    I have a JSF application that sends an Excel file back to the user.
    My backing bean has a method that uses POI to generate the excel file and then write it to the servlet response.
    This works fine if I call the method from a command button, but this displays the file in the current browser window, whereas I want to open the file in a new window.
    I added an onclick javascript call to a command button which does a window.open() to open a jsp in a new window. The jsp contains an empty view, as I'm using an on-load phase listener to make the call to my backing bean method which should send the excel file when the file opens.
    However, when the window opens, I get an IE error message saying 'Could not open xxx.faces', and then an excel error message saying 'Could not open xxx.xls. This may be because the file does not exist, or the file is already open etc etc'
    However, I found that if the popup window goes through a servlet (which just forwards to the jsp page) instead of going to the jsp directly, it works like a charm.
    Any ideas or suggestions on how to fix this would be very much appreciated. If I can't fix it I'll just stick with the servlet approach, although it just seems a bit messy.
    (I'm using IE6 SP2, tomcat 5.5 btw)
    Cheers,
    Stuart

    I'm doing a similar thing, but I use commandLink to lauch the window. CommandLink has the "target" attribute that I set to _blank.  As you would expect, that opens up the page in the new window.                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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

  • Link button in applet to open html file in same window

    Hello I am an student in holland.
    I am working on a project but can't find a code to make a button what links to an html file practicly just a link
    I got a html where i need to implent the applet to the applet only needs 10 buttons who can link to another html file or site.
    its not realy difficult i geus but i just cant find the right codes and because i only got 1 day left im asking for help on this forum.
    I realy hope you guys can help me.
    greets,
    Rob

    It's hard to tell what you're asking, but you should probably take a look at java.applet.AppletContext.showDocument.

  • Clicking on a website opens it in a new window but also opens up a blank tab

    On the Firefox homepage when clicking on a website to open, it opens up a new window and a new tab. Instead of going to the desired website I'm automatically lead to the blank tab which is the pinned favourites webpage (this is different to my homepage which is google).
    I would like to be able to click on a website and it open in a new tab but on the same window that I'm using.
    Any help would be appreciated.

    Do you get both pages if you launch a new window using either:
    * Ctrl+n
    * "3-bar" menu button > New Window
    ''If yes:''
    Check your home page setting to see if you have multiple home tabs. A vertical bar (|) is used between the addresses. This article shows where to check this in the Options dialog: [[Startup, home page and download settings]]. This article has more background on multiple home tabs: [[How to set the home page]].
    ''If no, or if the Options dialog is okay:''
    Add-ons may display tabs at startup or in a new window. For example, one that has been going around is Astromenda. This is my suggested cleaning procedure for bad add-ons:
    Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    Then, in Firefox, open the '''Add-ons page''' using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins. Set nonessential and unrecognized plugins to "Never Activate".
    In the left column, click Extensions. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Finally, you can "mop up" remaining issues with the '''scanning/cleaning tools''' listed in our support article: [[Troubleshoot Firefox issues caused by malware]].
    Are you able to get rid of the unwanted tab?

  • I have an issue with the latest project i am working on. When i open the file, the arrange window fails to open

    Really strange issue. Only on one project.
    If i open the file, i can see logic running through the list of instruments, but the only window that opens is the fixed note length Midi transform window. I cant see the arrange window anywhere!
    If i khit play on my midi controller keyboard, i can play the project and hear everything as it should be, but just cant see the arrangement.
    If i attempt to close the Midi transform window, it wants to close the who project.
    Any ideas on what i do!?
    Thanks

    Thanks, but i'd already tried that and it didnt work.
    I have managed to fix it though, and for anyone else with the same issue, here is what i did:
    Find your Logic project file
    Right Click on the project, and choose 'Show Contents'
    Open the displayed folder 'LgDoc'
    Remove the file 'displayState'
    open the project, and all should be good!

  • Not able to open excel file in new window any one plese help me as early

    Hi all,
    I have a imag tag in jsp on click on the image i am submitting the form
    1. i have used the below code
    HSSFWorkbook wb=viewHelper.getExcel();
    response.reset();
    ServletOutputStream outs = response.getOutputStream();
         response.setContentType("application/vnd.ms-excel");
         response.addHeader("Pragma", "No-cache");
         response.addHeader("Cache-control", "no-cache");
         response.addDateHeader("Expires",1 );
         wb.write(outs);
         outs.flush();
         outs.close();
         return;
    2. I got one dialog box to open ,save,cancel . if i try to open it is openeing in the same window i had made the request. i need it to ask for in which type of application to open. i.e, in excel , notepad,.....
    please mail me as soon as possible
    [email protected]

    I had a similar porblem....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    Thanks in advance...

  • 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();
                    }

  • Can No Longer Open html files

    I Fireworks 8, I was able to save a web page as a complete
    document to the local drive and then open it with Fireworks to work
    with it. With CS3 all I get is a totally white canvas. I have
    checked that my preferences are all set the same, and they are. I
    use this feature all the time for a variety of functions, i.e.,
    combining slices to make one gif, etc. Am I missing something - or
    is that function no longer there?
    It shows it can open Html files, but it will not even open
    it's own exported html files. Get "internal error." The file is
    fine ( and it just created it.)

    No, it is not a bug at all. It is all about how you do this
    and understand the primary functionality of Fw itself, and how it
    do for you. If you don't fully understand how it works, then you
    have problem trying to understand how it works and what's not.
    Then, perhaps that you clearly do not understand the
    functionality of Fw CS3, and how it relates to exported HTML files
    created by Fw CS3.
    It is very common, wide misunderstanding among other,
    especially with newbies using Fw app, and they thought that if Fw
    could create HTML code. Actually, it was created by side of
    pre-scripted coding inside the app itself, and that it does the
    rest for you.
    As for working with sliced images around Fw CS3, as any
    legacy versions of Fw, the concept of sliced images is often up for
    the air and debates. Everyone have different opinion about sliced
    images, and what not and what's cool.
    I personally dislike sliced images. If having lots of sliced
    images, means slower downloading time and more codes involved.
    I get the feeling that you really not understand how Fw
    works, and how it relates to your question about HTML code in Fw.
    Please try to understand that FW itself CANNOT edit HTML. It only
    just exports html code for you. However, it is important to note,
    it is NOT perfect html code.
    It is best IF you work with pre-scripted HTML code in
    Dreamweaver, or any web authoring app to work with HTML directly.
    If you are not taking my advice, so be it. I am out of this
    discussion. End of discussion!
    And good luck!
    quote:
    Originally posted by:
    lloydtennison
    No. I mean for editing the images. The open command even
    shows html as an option to open, it just does not open the file at
    all. I just creates a new one.
    The reasons for opening an html file in Fireworks have
    nothing to do with Dreamweaver or coding, just images and image
    manipulation. If open html is an option, as it is, it should open
    the file. It used to open with all slices intact, and all html code
    behind it. Now it just opens a white page.
    It is a bug and problem since it does not do as it should.

Maybe you are looking for

  • Unable to print to office jet pro 8600 over wifi from a laptop running vista, basic home edition

    Have a new officejet 8600 pro and am able to print via wifi from laptop running windows 7 and hp touchpad running webos, so all is working fine. However, I am unable to print via wifi from a laptop running Vista Home Basic, 32 bit OS. I can see the p

  • Internal error in the communication with the IGS (charts)

    Hello to all, I have a problem when visualizing the graphics of the reports in BW 3.5 (WAD)  the connection RFC IGS_RFC_DEST has never worked however me same the graphics are visualized, but now I am not able to make that the graphics appear in the W

  • Dynamically adding to PDF after applying Extended Reader Rights

    All,      I've created a PDF with a digital signature in Acrobat X Pro and applied the extended Reader rights. What I am trying (and failing) to do now is add new pages to the PDF via a Java library (BFO) on a server. When a user eventually brings up

  • Open a dialog/panel on Option/alt + click

    I've created an indesign panel using Adobe Configurator. The panel includes a few javascripts I've written to automate a few tasks in indesign. On some of the buttons I would like to include a funcitionality where in a dialog pops up when the used al

  • Photos in mail

    Is there a way to attach a picture to an email that you are already writing? Also is there a way to attach and send more than one photo at a time?