Open new window from standard tab

I searched the forum for my question but didn't have any success.  Sorry if this question was already been discussed.
Is there a way to open a new browser window when you click on a standard tab?  My client wants a separate window to open when you click on a standard tab, similar to a pop-up window.  I'm sure this has been done but I don't see a way to do it directly.  Basically I need to go to a new page in the application and include "target=_blank" in the link for the tab.
I am using APEX 4.2.1
Thanks in advance,
John F

This is not a standard functionality of the tabs. Since tabs do an apex.submit('TAB_NAME') you will have replace that code with your own (with jQuery for example) to make this happen.
Perhaps a better approach is to use a list for your tabs.  Many people (myself included) we replace the APEX tabs with a list. Once you do this, your requirement becomes trivial because you can navigate to any page or URL and control the attributes of the link.
The technique is not hard at all and the tabs will look identical as the standard tabs (or you can make them look different of course).
This is an excellent presentation on how to do this *:
https://www.enkitec.com/about/presentations/alt_tab
Now...I would be remiss if I didn't say... this is an absolutely terrible idea from a UI stand point. I would strongly suggest using a Nav Bar element for this, for example.  Or some link somewhere else, use the Global Page (a.k.a. Page 0) to display it everywhere.
Thanks
-Jorge
http://rimblas.com/blog/
* Disclaimer: I do work for Enkitec, but the solution is very popular.

Similar Messages

  • Always enjoyed being able to open new windows in a tab. However, after upgrading found I was no longer able to do this.

    Have search all over web and tried every solution I could find; explored addons, restored, even reinstalled 19.0 but I am still unable!
    It is very frustrating.
    Would appreciate suggestions (never thought I'd say this but Safari is looking good!).
    Thank you.

    Let me see if I understand the original problem. You can checked the preference on the following tab to divert new windows to tabs instead:
    Firefox menu > Preferences > Tabs
    And that was not working correctly, either on all sites or a few particular sites.
    Note that by default, sites that open a new window with particular specifications, such as the size, bypass that setting. To force even those windows into a new tab, you can use the about:config preference editor.
    In a new tab, type or paste '''about:config''' and press Enter. Click the button promising to be careful.
    In the filter box, type or paste '''link.o''' and pause while the list is filtered.
    Double click these and set the value as desired:
    '''(A) browser.link.open_newwindow'''
    '''3 = divert new window to a new tab''' (<u>default</u>) (checked*)<br>
    2 = allow link to open a new window (unchecked*)<br>
    1 = force new window into same tab
    '''*''' First checkbox in Options > Tabs
    '''(B) browser.link.open_newwindow.restriction''' - for links in Firefox tabs
    '''0 = apply the setting under (A) to ALL new windows (even script windows)<br>
    2 = apply the setting under (A) to normal windows, but NOT to script windows with features (<u>default</u>)<br>
    1 = override the setting under (A) and always use new windows
    '''(C) browser.link.open_newwindow.override.external''' - for links in other programs
    -1 = apply the setting under (A) to external links (<u>default</u>)<br>
    '''3 = open external links in a new tab in the last active window'''<br>
    2 = open external links in a new window<br>
    1 = open external links in the last active tab replacing the current page
    Sorry, that's a lot of data, but hopefully it's reasonably clear.

  • Opening new window from separate class

    Hello. I am currently writing a program that should be able to open a new window.
    Upon clicking a button in the first window, a second window should open up.
    The second window has to contain it's own buttons and methods, and upon
    clicking the button in the first window, it should close.
    So far I am only interested in making the button, and making the second class
    that will open when I click it. So far I've tried doing this in many different ways,
    but no matter what I do something either goes wrong, or it behaves weirdly.
    Class1: Contains the button that opens the second window
    /* Imports */
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class SecondWindowExample extends JFrame implements ActionListener {
        /* Initialization */
        private JButton xPress;
        /* My main method */
        public static void main (String[] Args) {
            SecondWindowExample frame = new SecondWindowExample();
            frame.setSize(200,120);
            frame.createGUI();
            frame.setVisible(true);
        /* The interface */
        private void createGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            /* Button to open new window */
            xPress = new JButton("Press me");
            window.add(xPress);
            xPress.addActionListener(this);
        /* The actionPerformed for my actionlisteners
         * This only works when you press the button with your mouse */
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            if (source == xPress) {
                /* Code to open and close second window */
    }Class2: Contains the second window to be opened by the first class
    It has to be able to contain it's own buttons and components
    import java.awt.*;
    import javax.swing.*;
    public class calcFunctions extends JFrame {
    public calcFunctions(){
            createNewGUI();
            setVisible(false);
            setTitle("Functions");
            setSize(300, 300);
            setLocation(200, 200);
            setResizable(false);
          private void createNewGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
    }Thanks in advance, any help is greatly appreciated.
    Sincerely, Ulverbeast

    I would make the second "window" a JPanel (or better a class that is able to create a JPanel), and display it in a modal JDialog. For e.g.,
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class SecondWindowExampleB extends JFrame implements ActionListener {
      /* Initialization */
      private JButton xPress;
      private JTextField sumField = new JTextField(10);
      /* My main method */
      public static void main(String[] Args) {
        SecondWindowExampleB frame = new SecondWindowExampleB();
        frame.setSize(200, 120);
        frame.createGUI();
        frame.setVisible(true);
      /* The interface */
      private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());
        /* Button to open new window */
        xPress = new JButton("Press me");
        window.add(xPress);
        xPress.addActionListener(this);
        sumField.setEditable(false);
        window.add(sumField);
      public void actionPerformed(ActionEvent e) {
        Object source = e.getSource();
        CalcSumPanel calcSumPanel = new CalcSumPanel();
        JDialog dialog = new JDialog(this, "Calculate Sum", true);
        dialog.getContentPane().add(calcSumPanel);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        if (source == xPress) {
          sumField.setText("");
          dialog.setVisible(true);
          double sum = calcSumPanel.getSum();
          if (Double.compare(sum, Double.NaN) != 0) {
            sumField.setText(String.format("%.4f", sum));
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    class CalcSumPanel extends JPanel {
      private JTextField field1 = new JTextField(10);
      private JTextField field2 = new JTextField(10);
      private double sum = Double.NaN;
      public CalcSumPanel() {
        JButton calcSumBtn = new JButton("Calculate Sum");
        calcSumBtn.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
            calcSumActionPerformed();
        add(field1);
        add(field2);
        add(calcSumBtn);
      private void calcSumActionPerformed() {
        try {
          double d1 = Double.parseDouble(field1.getText());
          double d2 = Double.parseDouble(field2.getText());
          sum = d1 + d2;
        } catch (NumberFormatException e) {
          sum = Double.NaN;
          JOptionPane.showMessageDialog(this, "Non-numeric data entered", "Input Error",
              JOptionPane.ERROR_MESSAGE);
          field1.setText("");
          field2.setText("");
        Window win = SwingUtilities.getWindowAncestor(this);
        win.dispose();
      public double getSum() {
        return sum;
    }

  • Opens new window from link rather than new tab

    I had Firefox set to open links in the same window. It has started opening them in a new window.

    see [[Reset Firefox – easily fix most problems|Reset Firefox – easily fix most problems]]
    [[Firefox does not work - Common fixes to get you back up and running|Firefox does not work - Common fixes to get you back up and running]]

  • Open new windows in a tab just doesn't work

    It doesn't matter how I set the preference, either open links in new window or new tab, it ALWAYS opens in a new window
    So that button in the preferences doesn't do anything at all!

    BevvyB wrote:
    In the safari prefs, like in other browser prefs, you can choose whether new links open a new window or a new tab
    Safari ALWAYS opens a new window when you click a link away from the current page, no matter whether it is set on the window or tab option
    You are referring to the Safari preference setting in the General section:
    Open links from applications _ in a new tab in the current window
    This refers to links in other applications, not links on web pages that you are viewing in Safari. With that setting checked, if you click on a link in Mail, Word, Acrobat Reader, or any other program that is not a web browser, the link will open in a new tab in the current Safari window.
    Unfortunately, Safari does not have a setting to do what you want, i.e. to open links on web pages in a new tab when those links are coded to open in a new window. Your best bet is to submit feedback to Apple requesting that this feature be added to Safari.

  • Open new window from label link

    Hello,
    I have a table with url-s adresses.
    I want to build a report region with a link to open a new window for each line from table.
    I made that following code:
    select ''||DESCRIPTION||''
    from     url_table
    It's not working.
    I am a beginner.
    Thanks you.

    Hi,
    Use this SQL:
    select '--< '||DESCRIPTION||'' as "DESCRIPTION" from     url_table
    Remove --< from SQL Query
    and in report attribute for DESCRIPTION column:
    Display As: Standard Report Column
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How can I open new window from a link in another window?

    Hello everyone!
    Can anyone help me with my problem. I need to open a child window from a link in the mother/master window. Actually, the link that would open the child window is directed to a servlet that retrieves data from the database. The data will then be displayed in the child window. I don't how to open a new window with the data retrieve (thru the servlet) displayed in it. I'm using model 2 architecture (Servlet-JSP).
    Thank you in advance and more power!
    nicoleangelisdaddy
    [email protected]

    Or you can use something like this,
    Click and in your test()
    <script language="javascript">function test()
          document.form_name.target="_blank";
          document.form_name.action="/test/servlet/LoginServlet";
          document.form_name.method="post"
          document.form_name.submit();
    }</script>
    Here "/test" is your application context path.
    If you want to open the link in the named window then use,
    document.form_name.target="your_own_name";

  • Opening new window from applet does not pass session

    I have an applet which has a function where it opens some jsp pages in a new window. The jsp page checks for a session variable to very the user is logged in and some other variables that are required on the page. My problem is in IE 6/7 the new window does not have the session variables from the parent window.
    I'm using
    context.showDocument(new URL(host + "?" + params.toString()), "_blank");
    to open the new windows.
    How can I open a jsp age in a new window while carrying over the session variables from the parent/applet window?
    Thanks for any assistance!

    We experienced the same thing with Java 6 Update 18 on IE 7. As for IE 8, if the user is a local administrator, then the session is kept in the new browser windows opened via showDocument. Check out the following URL for related discussions:
    http://stackoverflow.com/questions/1324181/ie8-losing-session-cookies-in-popup-windows
    Our clients are forced to roll back to Java 6 Update 17. Firefox works fine.

  • Why is firefox opening new window instead of tabs?

    Until today when I clicked on a link it would open a new tab. For some reason when I click on a link now it opens a new window. I'm not sure why. I check my options and it's set up to open tabs. Yesterday it was opening in tabs. I just don't know what's going on, hope you can help.
    Markita Larsen

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Firefox opens new windows instead of tabs on my mac laptop not on my PC

    Firefox 3.6.8 opens multiple windows instead of new tabs no matter how I select the options in preferences. This happens on my Macbook Pro but not on my Windows PC.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.

  • Firefox 29.0 opens new windows from clicking links that are in a smaller window, should open as maximized window. How to change?

    How do I click a link on a web page, and not have to maximize the window every time? Firefox 29 seemed to add this additional click annoyance and I can't see how to change that. I do not want full screen mode which is what Firefox calls it when it removes an additional row of menu items. I mean maximizing the window so I don't have to do it each time! Please tell me how to change the settings and restore this normal feature.

    Go to
    About:Config
    Change
    browser.link.open_newwindow
    value from 2 to 1
    Works for me now. Every new window is max size

  • Opening new window from a pdf using Formcalc and gotourl

    Hello,
    I am trying to open a new browser window using Formcalc and gotourl.  We are using Livecycle Designer ES2 9.0
    Previous versions of Designer had an extra parameter at the end such as :      
         xfa.host.gotoURL(<url>, 1)  or  xfa.host.gotoURL(<url>, 0)
    But in 9.0 the second parameter is removed , so I'm left only with
         xfa.host.gotoURL(<url>)  and this replaces my form rather than opening a new window.
    Our company restricts the use of Javascript with Adobe so I am left with Formcalc to accomplish what I need.
    Does anyone know why the second parameter was removed in 9.0  and/or if there is a way to accomplish what
    I need in 9.0 without using Javascript?
    Thanks,
    Norm.

    Hi,
    if you cannot use JavaScript because it is deactivated, then FormCalc won't work also.
    I don't know why the 2nd optional parameter has been removed. Here is an explaination of it.
    http://help.adobe.com/en_US/livecycle/8.2/lcdesigner_scripting_reference.pdf#page=382

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • Won't open new window, only tabs

    Previous version I could change option to open new window rather than tabs in 'tools' - 'options' This does not change anything. Also, it no longer saves 'home page'

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with preferences and rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default value.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

Maybe you are looking for

  • MM PO send by email

    Dear friends, We are needing to send some POs by email with an PDF attached. Does anyone have the steps to generate this pdf ? best regards, Alessandro

  • Elusive Auto-Play Feature for Web Gallery

    I dug around in the forums here and couldn't find a discussion where this question was asked AND actually answered. I can't seem to get the Web galleries that I export from Adobe Bridge to autoplay. I've tried messing with the parameters: 'src', 'res

  • Local storage

    How do I add more local storage to my iphone? I have already deleted apps and removed photos. Is there something else I can do?

  • DBMS_JOB.RUN: cannot run a job from a job

    I'm trying to set up a job to automatically run every October 1st. The "submit" part of this job is pretty simple, but I am getting some errors on the "run" part: declare job_nbr binary_integer; BEGIN dbms_job.submit(job => job_nbr,           what =>

  • PSE 10 Organizer startet nicht mehr.

    Nutze PSE 10 seit 2012. Der Organizer startet nicht mehr. Seit der letzten Nutzung wurden keine Änderungen, außer Neustart am PC (Windows 7) vorgenommen. Der Editor ist aufrufbar und nutzbar.