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
I operate an Airport WDS network composed of 2 A. Extremes and 1 A. Express. Several Macs (10.4.11) are connected to the network. So far, the Apple TV used to work fine. Added a new iMac running 10.5.1. Everything works fine EXCEPT the Apple Network [More]
My Mac HD has been playing up for some time and today it finally decided to not work at all. This was after I had installed 10.7.3 yesterday. I booted from my OS Leopard CD and installed it on my second HD which is usually used for data storage.  I d [More]
for graphic design, the monitor's calibration is way off. but i can't figure out how to calibrate [email protected]#$% PLEASE HELP I can't be the only guy out there with this issue... Thanks This question was solved. View Solution.Hi, Please try:    http://window [More]
I think I have tried all the "tips". Downloaded new software, set the compatability and made sure itunes was on the list to pass the firewall. NOTHING works.Thanks for the reply Sara. When I run diognostics....I get verification that the Interne [More]
Does anyone have any experience using a 10g pro*c library like libclntsh.so with an 11g database? In testing, it failed looking for libclntsh.so.10.1 but we were able to fix it with a link like such: ln -s libclntsh.so.11.1 libclntsh.so We are not in [More]
hi all, Generally what kind of systems involved in xi(sender ,receiver)XI can talk with any system which has web service enabled. So With XI you can communicated to any system and can be managed to communicate between to systems which doen't understa [More]
any ideas why when I click on the Lightroom 3 icon on my desktop that it shuts down?Do you mean that the program launches, at least partially, when the icon is pressed but closes down immediately afterwards? Is this new behaviour after it's started o [More]
My iPod was stollen how do I prove itThe only way to locate/disable/erase any lost/stolen iPhone/iPod Touch is through Find My Phone or a similar app. However, this requires that Find My Phone be setup/activated, on your phone, before it was lost/sto [More]
I only want to upgrade to Elements 10 if they provide a 64-bit version, is it in the available download?Thanks for the input (and my new PC has plenty of memory to leverage the new headroom).  With a little more research I found the answers to my ori [More]
When I open an image in ACR 5.3, the image don´t look the same as if I view it in Pentax RAW Photo Browser. The colors are dull and the image look boring in ACR comparing to Pentax Photo browser. I use Adobe-RGB and the settings i ACR is Adobe-RGB. I [More]