When users open links in a new window

We have a report that shows many rows of data together with a link to drill down on a particular row by branching to another page, passing the row PK as a parameter - standard stuff.
However, some of our users like to use the browser facility to open the link in a new window. They then go back to the report and maybe open another link in another new window.
Now they have 2 new windows open, supposedly showing 2 different sets of data. But since the windows share the same SESSION value, the session state gets mixed up. If they click the 2 links quickly enough they can even end up with the same data displayed in both windows.
I realise that I can avoid this by NOT passing the session ID. But since the user could do this with any link, that means NEVER passing the session ID in any link, so effectively not having any persistent session state.
Is it possible to:
- prevent the user from opening the link in a new window?
- recognize that the user has opened the link in a new window and start a new session?
This must be a potential issue for all ApEx applications, so I am sure someone has solved it already!

Actually, I have been looking at ways of detecting that a new window has been opened using Javascript - like this:
<script type="text/javascript">
function checkIfSpawned() {
  var lsBrowser = navigator.appName;
  var lsNumPages;
  if (lsBrowser.indexOf("Microsoft") >= 0)
    lsNumPages = 0;
  else
    lsNumPages = 1;
  if (history.length <= lsNumPages) location.replace('f?p=103:4');
</script>i.e. if there is no browser history then bring up a special page instead that simply says "sorry, you can't open this page in a new window".
However, there are other ways to end up with the same session in two or more browser windows (saving page including session_id in Favorites, simple cut and paste...) so I am still looking for other ideas. I think there are two ways in which this can be a problem:
1) Opening the same page with different parameters in two windows simultaneously: the second overwrites the session state of the first, but the first is still rendering and reading the session state. I am exploring whether we can detect that that has happened somehow and raise an error in the corrupted window. For example, perhaps we can save the parameter values into package variables in an On Load, Before Header process and then compare the session state and package values in an On Load, After Footer process: if they are different, the page has been corrupted and we raise an error. (I am very much thinking aloud here, I haven't tried anything yet).
2) With two windows open with same session_id (however that occurs): we cannot rely on the values in session state, only on values in items that are part of the current page. For example, if we have a 2-page wizard with pages 1001 and 1002, then we should not refer to P1001_XXX items when in page 1002. So we have to pass the values from 1001 to 1002 either as parameters, or perhaps by storing them in a table associated with a unique sequence value generated for the transaction, and then passing the sequence value as a parameter. (Again, thinking aloud here).

Similar Messages

  • I am unable to open a new window / open link in a new window

    In the previous Firefox versions we are able to open a new window & open link in a new window. The feature is there when you "right click" on the tab or click on the "open a new window" but it simply not functioning

    Link context method works for me, there have been many complaints that the first two items were switched, and that can be easily modified with the "'''Menu Editor'''" extension.
    If it does not work for you an extension might be involved.
    There is also the mouse shortcut '''Shift+click''' on the link. Called mouse shortcut because it involves the mouse.
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • Today I think firefox automatically installed a new version and after that it said my adobe flash was old so I had to update that. Now I can't open links in a new window.

    Today I think firefox automatically installed a new version and after that it said my adobe flash was old so I had to update that. Now I can't open links in a new window.

    Firefox doesn't install new versions of plugins, but Flash may update itself automatically.<br />
    You are still one version behind on Flash, current is Flash 10.1 r85<br />
    If the Flash player didn't update properly then you need to download the full version and run the installer as Administrator (right-click: Run as ...)
    Flash Global Notifications Settings Panel:<br />
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.html
    You are more versions behind on Java updates with having Java 6 U11, current is 6 U22.
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Since the latest update of 3.5.11, firefox opens links in a new window. it used to open links in a new tab. how can i fix that?

    since the latest update of 3.5.11, firefox opens links in a new window. it used to open links in a new tab. how can i fix that?

    The setting in "Tools > Options > Tabs" only works for links that would open in a new window.<br />
    That option allow you to divert such calls to a new tab.<br />
    For other links you either have to use a middle click or a Ctrl + left click or use the context menu.
    Tabberwocky: https://addons.mozilla.org/firefox/addon/14439

  • I would like to open links in a new window but cannot find where to put the setting. Have unchecked the "Open new windows in new tab instead" box in the Options dialog box.

    When I click a link on a webpage or other software, I would like for it to open in a completely new window.

    You can hold the Shift key and click the left mouse button a link to open that link in a new window.
    The setting in Tools > Options > Tabs is only for links that specify a target window and you can divert such a link to a new tab instead.

  • Force firefox to open links in a new window

    How can I force firefox to open a link in a new window? Right now it opens the link in the same window, no matter how I configure the settings. Frustrating.
    Thanks

    Firefox does not have a built-in setting to open all links in a new window. Normally, you would need to hold down the Shift key when clicking the link (Shift+click) or use right-click > Open Link in New Window.
    You may be able to find an add-on that adds this feature. I know there are various add-ons to open links in a ''new tab'', but I don't know about a new window.
    If the problem is particular to Google search results, there is a setting in Google itself to switch the links from same window to new window. That can be found on the search preferences page:
    https://www.google.com/preferences#nwc
    This preference is saved in a cookie, so if you clear cookies often, then you would need to revisit that page often.

  • Button opens link in a new window

    Hello everyone,
    This is a rather simple question for all gurus out there, but
    it seems a bit hard to find on documentation. How can you open a
    link in a new window with a button in a flash form? I want a button
    on my form to pop a new window with a specified link (say,
    www.adobe.com or whatever). How would you approach this?

    Check this out
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00001730.html

  • Since I installed Firefox 5.0, when I open a new window my toolbars are not there. I also cannot open links in a new window.

    With the old version, if I opened a new window, my homepage opened and all my toolbars were there. I don't want to have to open my toolbars every time I open a new window. Sometimes they won't open at all.

    Hi tomab,
    By default Firefox opens a blank tab when you hit the tab button. The fact that is shows an actual page leads me to believe that you have an add-on or something else causing your issue. I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    Hopefully this helps!

  • Open link (PDF) in new window from WebHelp custom skin button

    This question relates to my work with FM>RH integration. But the task I'm trying to accomplish is something specifically done in RH with customization of WebHelp skins, so I'm posting in this forum. I'm running RH9 on Windows XP Pro.
    We have recently replaced WebWorks with RH and finally have the mapping files set up to generate Help from our FM source files. Celebration was short, because then we realized that our users wanted a PDF option. We haven't done any mapping to create PDFs from RH, and that seems kind of silly anyway, since we have superior PDF generation from the FM files.
    So I set about making a custom button in the header of a WebHelp skin that will link to a PDF. I accomplshed that work, but its behavior falls short of the functionality I'd like to see. Currently, you click on the button and it opens the PDF in the browser window of the Help system. I want it to open in a new window, so I can keep the experience clean for the users, separating Help and PDF. I don't know if this is possible.
    Here is where I am at. To create button I navigated to:
    Project Set-up/Skins/NEW SKIN/WebHelp Skin Editor/ Main/NEW BUTTON
    When I choose the edit icon to customize the new button, there is an option to choose Link or JavaScript. I got the PDF to open inside the Help browser by just using the Link option and specifying the PDF. I have tried to use the JavaScript option without success. My JS may be wrong, but when I choose inline JS option and place anything there, it turns all the navigation buttons to gobbledy ****. Specifying an external JS file doesn't work at all.
    Any direction or help would be appreciated.
    Thanks,
    Douglas

    I see one other shortcoming with this solution now that I've implemented it. Our Help follows the applictions through a convoluted path of development servers, amongst other strangeness with the way we deploy Help and PDF documentation. My concern is referencing a single URL/file on a server. Since we're moving things around, that doesn't really work well, we want the PDF to be with the Help system, if possible. Is there a way to reference the PDF as a relative link in the baggage files, so it will pull it from whatever server the Help system resides on without having to make changes?
    UPDATE:
    It seems if you place the PDF in the WebHelp folder and reference it as the JavaScript, the Help system automatically reats it as root folder and find it there. So, I think this is the solution to my question? However, this is a bit annoying, as it means you have to remember to manually place the file in the compiled Help system. I had earlier experimented with placing the PDF as a baggage file, but those don't seem to carry over when you compile Help. Is there any way to put the PDF in the Baggage Files and designate that it be included in compiled Help?

  • Webcenter Portal / Open link in a new window

    Hi Folks,
    My requirement: when the user clicks on a link of a drop down (Drop down here is something like
    i have breadcrumbs and every breadcrumb has a drop down which is like list of values).
    All these list of values are run time customization's created Inside web center console under administration tab
    and there it was created as a link . I have few options when i create this as a link i.e., to open that
    link in the form of a new window, new tab or pop-up. I have set it to new window and then i tried
    to set it to POPUP-- In both cases it did not work, i mean when i click on the link it is just showing up
    in the page but not in a new window or Popup.
    Do i need to this in a declarative way in the required JSPX page (or including a Javascript in jspx page ) ?
    Is their anyway that i can do this !!?
    Any suggestions will be highly appreciated
    J developer version : 11.1.1.6.0
    Thanks
    Singh

    Hi Folks,
    My requirement: when the user clicks on a link of a drop down (Drop down here is something like
    i have breadcrumbs and every breadcrumb has a drop down which is like list of values).
    All these list of values are run time customization's created Inside web center console under administration tab
    and there it was created as a link . I have few options when i create this as a link i.e., to open that
    link in the form of a new window, new tab or pop-up. I have set it to new window and then i tried
    to set it to POPUP-- In both cases it did not work, i mean when i click on the link it is just showing up
    in the page but not in a new window or Popup.
    Do i need to this in a declarative way in the required JSPX page (or including a Javascript in jspx page ) ?
    Is their anyway that i can do this !!?
    Any suggestions will be highly appreciated
    J developer version : 11.1.1.6.0
    Thanks
    Singh

  • How do I link a reference point in one PDF to a specific page in a different PDF? I want it to open link in a new window AT the specific page.

    I have a paper with multiple reference points that I need to link to 3 other pdfs. Each time I create a link in the master PDF, I need to open a file in a new window and point to a specific page in the other pdf. I cannot get it to work.

    Hmmmm, just tried that and used the magnify glass to capture the specific page in the second pdf, but when I tried the link, it doesn't open a new window, it sits within the original pdf and I can't go back to the page I need to. What am I missing/
    [email signature removed]

  • Firefox does not open links with a new window or tab for certain web sites, e.g. Santander On line banking, help links.

    When accessing some sites where they have links for additional information that would normally open a new window or tab, Firefox does not open either. This happens on a variety of sites, most recently the Santander on-line banking site.
    == URL of affected sites ==
    http://

    Such JavaScript links should show the image in the same tab, so make sure that you left click such links.
    * http://kb.mozillazine.org/JavaScript
    Try to reload the web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Safari opens links in a new window.

    Every time I click on a new link on Safari, it is opened in a new window.  I haven't changed any of the Preferences for it to do this and it seems to have literally happened over night.  I didn't have this problem when I turned my MacBook off, yet now it seems to want to open new windows.
    Any help would be much appreciated.
    Dan.

    This happens sometimes.
    Check Safari Preferences.
    Safari > Preferences > Tabs > Open pages in tabs instead of windows:
    Toggle between "Automatically" and "Always".
    Best.

  • Safari opens links in a new window but it's blank

    Apologies if this type of question has been answered, I searched and didn't seem to find a similar discussion. If you know of one, please let me know.
    The issue is that on occasion when clicking on a link, it opens a new window but the new page is blank. This doesn't happen all the time. Most of the time I get this problem with google searches and recently with BBC America. I go to BBC America and click on shops, I end up at this address http://www.bbcamerica.com/content/142/shop.jsp. When I try to click on the link for the Doctor Who Boutique, a new page opens, blank, and the address says http://www.qksrv.net/m4115ft10L/t-4/IHOLMQHH/PMLNOI/H/PK020AGIOMIKJPIQMGIKIKJQNQ OPPKPGN9/QPrINHNwtNKKIIvHPJswHHJKrvwwHNPr?n=y%3C29E!7DL8-I4O88CQ%3C7JJF%3A%2F%2F MMM.0DH3E4PHI.D4J%3AYQ%2F2B82A-YVUWXR-RQXUVZQQ%3C%3Cg%3C%3C
    I've made sure everything is up to date, turned of all firewalls and allowed pop up windows. So far it hasn't helped. Currently running Safari 5.1.
    Thanks!

    Quit Safari.
    Open a Finder window select your Home folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder.
    Move the cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari.
    If that didn't help, try troubleshooting the Safari .plist file.
    Go to ~/Library/Preferences. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Quit then relaunch Safari to test. If that helped, move the .plist file to the Trash.
    ~ (Tilde) character represents your Home folder.

  • Firefox closes existing window when you open and close a new window

    When I'm using firefox and need to open a new window (or a website opens a new window) and I'm done with that new window and close it, Firefox attempts to also close the previous window that I am using. I've tried reinstalling, but other than that I don't know what to do. What usually happens when I close the window is that I have multiple tabs open in the other one and it asks me if I would like to close all my tabs. When I hit cancel, it asks me again. Once I hit cancel the second time it stops bothering me.

    I thought it was doing that also. But I found that if I start a new chat with someone I was messaging before, then the old messages re-appear in the messages window.

Maybe you are looking for

  • Audio cuts out at random while playing songs in itunes

    While playing songs in itunes audio will frequently drop out completely across the entire system. The song will still be in play mode but the track progress indicator doesn't move. There's no slowdown or spinning beachballs, activity monitor doesn't

  • ADF11g : Need help with RowIterator binding

    Hi, I am using ADF 11g. In a ADF application we have application module under which we have different View Objects. In my application I am having a separate Data Controller, which is formed by Java Class. Inside this Data Controller, I am having a Vi

  • Mac OS-X Raw Converter for Canon produces sometimes wrong colors

    I have just acquired a Canon 5D Mark II and I have some problems with the RAW converter supplied with Mac OS. The image is 21 Megapixels and it is the result of a long exposure. If I use the Canon Digital Photo Professional to produce the JPEG, I get

  • JSF: output textfield rendered problem

    Hi! In JSF 1.1, in my page when I click the radio button with valuechangelistener brings to the page a text field (rendered = true / false). When I give a value to the text field the value doesn�t go the backing bean field when I go to the next page.

  • Collation in Simplified Chinese

    Does anyone know what collation method is supported in JDK 142 for Simplified Chinese locale? (PinYin/Stroke/Other)