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
Hello All, I need to create a pop up window that will encourage the readers of the pdf to fill out and complete all feilds within the pdf before emailing it to a colleague. For this, we would like to use an image that we have already created. Unfotun [More]
i recently had my mac repaired and the hard drive was set back to its original settings. I had my itunes music that i had purchased restored and i have begun to download new songs to add to my ipod. itunes will not allow me drag new songs onto my ipo [More]
So I've got Windows 8 Preview running on a dual core AMD Dell Zino and everything was swell (well, nearly everything) until I tried to install iTunes, which is a big deal for this device, since it's supposed to be a server. Anyone installed iTunes SU [More]
First of all, thanks for looking and helping. Second, it's probably my fault as I am a tweaker often to my detriment. So, with disclaimers out of the way, here's what is happening: I have a MacBook Pro and my mail is IMAP from my GMail account. When [More]
When I open up the iWeb Application I get a window that states the following: "The following errors occurred while trying to open this document:" "Missing File PhotoGraynavbg-9.png" "Missing File PhotoGraynavbg-9.jpg" "M [More]
I have 9i developer installed on my local machine, with the whole oc4j and report server running on it for development purposes. The report server queue is getting large and I want to clear it out. How do I do this?? Everything I have found is about [More]
Hi, I have a user <i>BEXUSER</i>. In <b>PFCG</b>, I have assigned this user to a role <i>ZR_USER_ROLE</i>. However, when I tried to open a query in BEx Anlyzer through <b>Open > Workbooks > Roles</b> t [More]
Hi, I would like to give hard stop while saving a proforma invoice if there is no pricing. I have set the condition type as mandatory in the pricing procedure, but still it allows to save the proforma invoice with just a message. This in turn gives t [More]
Hello guys, I have completed my B.tech in Computer Science, I am confused a bit , Can i get a job after getting certified in Oracle Associate Pl/sql developer1005323 wrote: Hello guys, I have completed my B.tech in Computer Science, I am confused a b [More]
I am looking for a Bluetooth car Kit that will go with an iphone4.As you don't mention the rather important info on where you are in the world (this is a WW forum ) This is a favourite in UK which I know many have fitted in Z4s http://www.amazon.co.u [More]