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
First of all, please note the below procedure is to be tried at your own risk. The basic idea is to add a custom refresh rate to the system (70Hz Vertical) and use it instead of the default one (60Hz). What was my flicker like: Continuous, felt like [More]
Can anyone help me figure this out?I have the same problem but I just restored my I pod I didnt just updat it and I don't know how to fix itRead other 3 answers [More]
I am trying to install SQL Developer 3.2 on my Windows 7 - 64 bit laptop. When I attempt to install and put in the Java path I get the following error: "Cannot find a J2SE SDK installed at path: ;C:\Program Files\Java\jdk1.7.0\bin." I tried usin [More]
Hi, We are unable to view some of the iviews in the portal. For example i go to System Administration>System Configuration> I should see portal content and the list of systems etc but i get a Page Cannot Be Displayed error. But we are able to view t [More]
I am trying a Trial Download of Photoshop CS5 and during Extracting, I recieve "The following disk images couldn't be opened" The image is Photoshop-12-1-LS1.dmg and the error -4960. What must I do? Thanks, ymlevyrsaIt appears that your download [More]
Hi, Is it possible to add a diagram, picture, or table to a SP file with link to another SP file? I know this is possible in, say, Word. For example, I can add a diagram and check a box to include a link to the source file - so that when the diagram [More]
For about the last week, I can't download Word or PDF or .zip attachments in Gmail through Safari.  Nothing happens when I click on the Download arrow in an email attachment.   (The problem also exists in Firefox). Safari Preferences are set to open [More]
Hi, We are planning to implement some customization to portal Top Level Navigation. In our system we are having around 20 roles, We need to display only five roles at a time in TLN TAB. Remaining will be accessible on clicking More Tab (After fifth r [More]
I just found that my computer stopped asking for my password when waking from the screensaver or sleeping. I went back and double checked my system prefs and it was still checked to require a password. Any ideas? I also have noticed that after my com [More]
Hi, I have a process that uses SD_SALESDOCUMENT_CREATE to create the sales documents on background (there are too many of them), and now I need to activate the use of substitute materials, but the substitutes are not taking the conditions entered for [More]