Open new document in the same window as before..how to?

Dear all,
I need to open a image document in a new browser window each time the user clicks on a particular button. The built-in I'm using is web.show_document('URL', '_blank'). But this opens a new browser window each time the button is clicked. The client wants to have open it in the first time in the day (in a new browser window) and later on open the new image on the same browser window. Do not want to open a new browser. I have tried the '_top' and '_parent' but they replace my application.
Is there any way to open the image in the same open window? Please advice.

It is possible to specifiy a named window instead of _blank.
So you could use the following instead:
web.show_document('html/hello.htm','my_window');
where my_window can be anything you want to call that browser window.
However, I have discovered that if you put this in a button trigger, the second time you press the button (if the window is still open) it will not take focus - ie. it remains in the background.
You can get around this by closing the window if it is already open:
web.show_document('html/close.htm','my_window');
web.show_document('html/hello.htm','my_window');
The close.htm needs to contain some javascript to close the window:
<html>
<body onload="closeit()">
<script>
function closeit()
window.opener = top;
window.close();
</script>
</body>
</html>
Apparently XP SP2 is a little stricter with javascript and may not allow this. Also, not sure if this works in all browsers, I only tried IE6.

Similar Messages

  • Open all documents in the same window ?

    How in Reader 9 can I configure it to open all documents in the same window instead of as individual windows?
    Thanks

    Bug report sent to Adobe:
    ******BUG******
    Concise problem statement:
    MDI removed from Reader 9
    Steps to reproduce bug:
    1. Open more than one document.
    2. Look at taskbar overflowing.
    3.
    Results: Customer is pissed off.
    Expected results: Happy customer.
    Steps to make customer happy: Get your heads out of your ***, and make MDI not just an option, but the DEFAULT. Who the hell thought going back to Windows 3.0 SDI interface technology was a good idea? Please post his/her name, and whoever approved that decision's name publically, because a) they will (or should) be looking for a new job since they just got fired, and b) I don't want to make the mistake of hiring them. I mean seriously. I thought what I was reading on the web was a hoax. I had to check snopes.com to be sure. Do you guys not have a random drug testing policy? For that matter, do you not realize that when a person, that you're trusting to make important decisions that affect millions of people, is sitting at their desk drooling on themselves and can't get out more than a single syllable word, that maybe, just maybe, they're not the person you should have in that position? Is this a product line wide decision? Should I look at scrapping all of my other Adobe / Macromedia products and upgrading to those that support 15 year old technology? Are you going to turn into another Symantec? Hey, lets buy take over great companies with great products, turn the product lines into crap, and then discontinue and abandon them. Seriously, what should we expect for Reader 10.0? Are you going to be upgrading to a console application? Please, please, please for 11.0 can we have it be phosphorous green too? I think Im going to go back to my bottle of wine now

  • Opening a document in the Same Window.

    Hello Gurus,
    I'm able to display the search results in the same window rather than opening a new window. Now i want to display the document also (clicked by the User) in the same window and dont want to open a new window at all.
    Any help on this would be highly appreciated. Full points are guaranteed..
    Vaib

    Hi Vaibhav,
    I need to display the serarch results in the same window.
    I have followed the steps mentioned by you in the thread
    <i> Search Results in the Same Window..as we have in SDN</i>
    Even after making changes to 2 PAR files mentioned in the above thread, on click
    of Search button nothing happens.
    It will be great if you can send me your modified PAR files, to identify where i am
    going wrong. My mail id is [email protected]
    Thanking you,
    Vikas

  • How do I display multiple pdf documents in the same window?

    I am sure that this question has been asked many times before, but I have searched the forums and the online help documentation for nearly 45 minutes without a satisfactory answer.
    I have just installed the trial version of acrobat pro and I want to open multiple documents in the same window but I can't seem to find out how to do it.
    Can someone tell me how?
    Thanks

    This is the worst thing to happen to acrobat, in my opinion.
    The clutter that it creates on my computer and the fact that i cant even see the document title when I have a bunch of them open (because the task bar is too full) is unacceptable.
    I never would have changed from Acrobat 8 if I had known, and now I cant switch back (company license).
    The latest thing i can find about addressing it is here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405108&sliceId=1
    which was in november 2008....
    why hasnt any thing else been done about it?  I just spent 45 minutes being sent to different departments over the phone, only to be told to submit a feature request.
    Please do this if you havent already:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How to open a new iView in the same window?

    Hi
      i want to open a new iview in the same window.How can i do that ?
    Thanks

    Hi,
    If u want to code in WDJ  ..
    Use following method
         WDPortalNavigation.navigateAbsolute(
         "ROLES://<PCD location>,
         WDPortalNavigationMode.SHOW_INPLACE,               WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
         (String) null  );
    SHOW_INPLACE is the key
    Cheers!!
    Ashutosh

  • How can I make "Open Link in New Tab" open the new tab in the same window, not a different window?

    When I Ctrl-click a link and choose "Open Link in New Tab" it chooses to open the new tab in a different window (one that's already open) rather than opening the new tab in the same window. Even though the other window is minimized, it automatically gets restored and placed on top of the window I was in. This interferes with my context, forcing me to minimize the window again to get back to the one I was in before. I want the new tab to open in the same window, so I can still see the tab I was in. Some links seem to have the "Open Link in New Tab" behavior automatically, so I never know when I'm going to get thrown out of my current window. Very annoying.

    If you have a mouse with a scroll button then try to middle click the link to open the link in a new tab.
    It is also possible that the links use onclick JavaScript instead of a href to specify the action.
    See also:
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    * http://kb.mozillazine.org/browser.link.open_newwindow

  • My safari stopped letting me open a new tab in the same window. what happened and how can I get it back to normal?

    When I try and open a new tab in the same window, it wont open a new tab. It leaves the page I am on and goes to the "top sites page."

    Hi,
    If you have got to  Mountain Lion OS X 10.8.2 and therefore Messages version 7.0.1 then double click the individual chats.
    Once they are in separate windows you can chat like that  (That's the way I used to chat - I didn't even use the tabbed chat)
    It is impossible to create a separate Chat window each new chat (you have to separate them off from the main window which also keeps a "copy")
    New chats are added to the main window even if you have used the red button to hide it. (CMD + 0 from the Window menu brings it back)
    10:49 PM      Tuesday; November 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • Forcing "Open cross-document links in same window" to be unchecked

    Hi All,
    I am distributing a PDF document set where there is one PDF with well over a hundred links to other PDFs which are located in sub-folders.
    The set will be distributed on USB thumb drives.
    It will be simplest for users if they have "Open cross-document links in same window" unchecked.
    Is there a way I can "force" it to be unchecked?
    During a test, someone got a security warning: "This document is trying to access abcd.pdf" Allow/Block. Why are they getting that message when there is no Internet request?
    Thanks very much for all thoughts and wisdom,
    David

    It works in an older version 6.0
    Anyone know how to get this to work in the newer versions?

  • "Open each folder in the same window" not working

    hey guys, just today, I noticed that whenever i double click a folder, it opens in a new window.  I went to folder properties, and made sure I checked "Open each folder in the same window," and its checked.  I tried switching it on, then off, then restoring all defaults in both those settings and the view settings, and I've tried restarting the computer, even using a system restore point.  No Matter what, whenever I double click a window, it opens in a new window, but if I use the navigation pane, or if I highlight a window and click the open button at the top left, it opens in the same window.  This is very very very annoying, because just navigating my harddrive, I might end up with 20 windows open to reach just 1 file.
    Does anyone know what's wrong?  or how I can fix this? 

    I was experiencing this same issue on my laptop and spent several frustrating hours of searching in vain for a solution. I tried most of the same fixes mentioned here with no success (re-registering DLL's, running the system file checker [sfc /scannow],
    turning off the navigation pane, performing virus scans, etc). After almost giving up, I discovered that I only experienced this behavior when I accessed Explorer from the shortcut which was pinned to my taskbar. When I opened the "Computer" shortcut
    on my desktop, I was able to open individual folders without having new windows open each time. I suspect that this is related to the new design/function of the taskbar in Windows 7. To get the results I wanted, I opted to revert to the "classic" style
    taskbar seen in Windows Vista (AKA the "Quicklaunch" toolbar) by following the instructions here:
    http://www.howtogeek.com/howto/windows-7/add-the-quick-launch-bar-to-the-taskbar-in-windows-7/
    Then, I simply added a new shortcut to "Computer" in the new Quicklaunch toolbar and, "Voila!" - problem solved. Oddly enough, I don't experience the same behavior on my desktop PC which is also running Windows 7. Ain't Microshaft grand?!? (a-hem)

  • I can not open new tabe in the same page

    i can not open new tabe im the same page
    when i click on new tabe , it donsnt open at all

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • How to open KM file in the same window

    When we open KM file by /irj/go/km/docs/... link it is previewed in a new Internet Explorer window.
    We changed Targed property to Self for iView navigation in LayoutSet render but the image file is still opend in new Window.
    How to workaround this?

    We changed Target Window Type property value of ResourceRenderer of Navigation iView  to Self.
    When an authenticated user  tries to open KM file it is opened in the same window if file URL include /irj/servlet/prt/prtroot....
    If file URL contain /irj/go/km/docs/.. it is opened in new window.
    When an anonymous user  tries to open KM file it is opened in a new (popup) window.
    We need that anonymous user can open km files in the same window.
    How to work around this?
    We use light framework.

  • Can't open a tab in the same window

    Hello, tell me, please, why can't I open a new tab in the same window. maybe I did something wrong done in the settings?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration 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.org/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Making "Properties bar" active in all opened documents OR opening multiple documents in the same win

    Adobe Acrobat Pro. / Extended version 9
    OS: Windows XP SP3
    Hi & thanks for your services.
    In acrobat 8 we could open >1 pdf in the same window; this is not available for V.9 & the problem is that full editing is possible ONLY in the window opened last because "properties bar" is not active in other windows but the last one.
    So please let us open more than one pdf in the same window for acrobat 9, or make full editing (active "properties bar") available in all opened windows.
    I shall also say that generally V.9 is better & more stable than V.8.
    With great appreciations.
    [email protected]

    This is the worst thing to happen to acrobat, in my opinion.
    The clutter that it creates on my computer and the fact that i cant even see the document title when I have a bunch of them open (because the task bar is too full) is unacceptable.
    I never would have changed from Acrobat 8 if I had known, and now I cant switch back (company license).
    The latest thing i can find about addressing it is here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405108&sliceId=1
    which was in november 2008....
    why hasnt any thing else been done about it?  I just spent 45 minutes being sent to different departments over the phone, only to be told to submit a feature request.
    Please do this if you havent already:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • IT WILL NOT LET ME OPEN UP 2 OF THE SAME WINDOW

    WHEN I TYPE A LETTER IN TO THE URL LIKE “M” FOR EXAMPLE TO GO TO THE FIRST CHOOSE WHICH IS http://www.mozilla.com/en-US/firefox/fx/ AND THEN I OPENED A NEW TAB AND PUSH “M” AGAIN TO OPEN http://www.mozilla.com/en-US/firefox/fx/ AGAIN I CANNOT DO IT, IT WILL NOT LET ME OPEN UP 2 OF THE SAME WINDOW

    If you want to load a second copy of ''the page you are viewing'' in a new tab, you can press Alt+Enter in the address bar.
    If you want to load a second copy of ''some other page'' that is open, as you noticed, instead of showing the URL, the awesomebar drop-down shows "Switch to Tab." Not everyone likes this feature, so someone created an add-on to turn it off.
    [https://addons.mozilla.org/en-US/firefox/addon/switch-to-tab-no-more/ Switch to Tab no more :: Add-ons for Firefox]
    Does that help?

Maybe you are looking for