Sitemap

Amicuk Programming Answers

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

2015-10-11   Views:2

Advertisement

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

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.

The replay answer
Advertisement
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.

Go to See the other 2 answers

Displaying XML Document in new browser window

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have a hyperlink on my page. When I click on it, it will open a new IE window and display xml document. The new window is displaying some of the xml and at the end displaying the following: The XML page cannot be displayed Cannot view XML input[More]

Open all documents in the same window ?

Category:DefaultRelease time:2015-10-11Views:130

How in Reader 9 can I configure it to open all documents in the same window instead of as individual windows? ThanksBug report sent to Adobe: ******BUG****** Concise problem statement: MDI removed from Reader 9 Steps to reproduce bug: 1. Open more th[More]

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

Category:DefaultRelease time:2015-10-11Views:130

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[More]

My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

Category:DefaultRelease time:2015-10-11Views:130

My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?Soution: Delete the[More]

Open a document in a new window

Category:DefaultRelease time:2015-10-11Views:130

How can I open a document in a new window? I need to have 2 open windows, with the same document. In MS Office, its "open in a new window". Thanks!KOENIG Yvan wrote: Feature unavailable "inthebox" This is why I wrote a script available[More]

Transfering FCP Document files to a windows comp..I can't get it. Help!!!!!

Category:DefaultRelease time:2015-10-11Views:130

I transfered all the fcp document files to my windows desktop computer over the network to free up some space on my mac, thinking I would be able to use the files later on on my mac thru the network. The files aren't shown in fcp file types but in ex[More]

How can I scan a document to PDF in Windows 7 Professional

Category:DefaultRelease time:2015-10-11Views:130

I have a Canon MX892 which I previously used with Windows XP. I was able to scan documents to PDF very easily using the Canon Solutions Menu EX.  I am now using Windows 7 Pro 64. I downloaded the associated version of Canon Solutions Menu EX, but it[More]

I have imported a document from my old Windows PC but on the Mac the text is misaligned and the pictures are gobbledygook. It looks fine on the thumbnail. How do I see my documents in Mac as they appeared in Windows?

Category:DefaultRelease time:2015-10-11Views:130

I have imported a document from my old Windows PC but on the Mac the text is misaligned and the pictures are gobbledygook. It looks fine on the thumbnail on the desktop. How do I see my documents in Mac as they appeared in Windows?To view it in an ac[More]

Opening multiple document in single instance (window)

Category:DefaultRelease time:2015-10-11Views:130

Someone here mentioned this: "Acrobat 9 no longer supports opening multiple documents in the same window." This is disappointing.. does anyone know the workaround / hack? Running Acrobat 9 Standard. Thanks, DevinUnfortunately yes you're correct.[More]

Document icon in Finder window differs from Get Info icon

Category:DefaultRelease time:2015-10-11Views:130

I've been noticing unexpected document icons in Finder windows for quite some time. This is especially true for PDF files. Since the early days of Mac OS X, I've configured my Macs to open PDF files in Adobe Reader, and I'm accustomed to seeing an Ad[More]

Target Document open in new window DEFAULT?

Category:DefaultRelease time:2015-10-11Views:130

Hello, I am working with a 50+ page document, each page has a TON of links, some shoot to websites, other pages in the document and finally... launches new PDFs on the DVD (to specific pages). My question is this: I am going through Acrobat and modif[More]

Hot
From the developer forum, I found a description which told me how to install a plugin on windows series system, but I only succeded intalling the plugin on 32 bits windows xp, couldn't install the plugin on 64 bits windows 2008 server. Any ideas or a [More]
Hi, I am trying to implement a analysis authorization for controlling the sales organization characteristic. I am working in a APO system.... when I set a * in the value list for the sales organization ..... I can select characteristic in demanding P [More]
I am trying to copy over a fiscal year variant's periods from one year, to the next. However, I am running into the error "Financial year variant periods MI are not in increasing order". This exact setup of periods is saved in prior years, but i [More]
How can I see the history of all purchased paid applications for my iphones? I tried the order history from hte store but there is nothing there? Where is the paid apps history? Thanks/PanosHi... Launch Safari on your iPhone. Type this in the address [More]
I recently upgraded my Mac operating system from OS 10.6 to OS 10.8. After doing so I found that the scrollbar on my Verizon email page had disappeared so it was impossible to click on messages at the bottom of the page. This was the case whether I a [More]
Hello, I don't find the good driver for my printer CANON PIXMA MG7150, and i use a usb cable. Is it good ? ThanksI have been setting up the same printer this week, with a USB cable  to my iMac. I have taken Mac printer drivers from the Canon site.   [More]
As far as I know matching invoices to PO or to a receipt is done in AP. A colleague of mine is stating that matching should always be done at the purchasing level and that she has never seen it done in Payables. Other than the user's guide, would any [More]
It doesn't matter which program I am in it still prints garbage every 4th or 5th page.Hi hood_winked,  This is a commercial line product. For the best answer to your questions you will need to repost your question to the following links.  http://h304 [More]
Hello SAP Gurus, Recently we uploaded the assets with transfer date as 31.12.2006 and after  I ran the Dep Run for January 2007 month and I could found that some of the assets is not posted the Depreciation for January Month.But I tried with repeated [More]
Hi I have setup a new FTPS server in Windows 2012 r2 and whilst I can connect I cannot write any files to the root FTP folder using Winscp or Filezilla, the error I get is "550 The supplied message is incomplete. The signature was not verified." [More]