Close Web.show_document Automatically [message #307145] |
Tue, 18 March 2008 00:02 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Prasad01
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
Hi,
I have a requirement from a multi-record block, whenever user selects a record, it should open the file related to this record(pdf file) in a browser.
I know this can be done using Web.show_document.
But the problem is when user navigates to a new record and the file doesnot exist for the new record, then the first Web.show_document should close automatically.
How can this be achived?
Thanks in Advance
Prasad
|
|
|
|
Re: Close Web.show_document Automatically [message #307481 is a reply to message #307471] |
Wed, 19 March 2008 00:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Prasad01
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
Even if I check it before calling Web.Show_document, it wont help.
Because lets say the first record has the file, so I lauch the file in a new browser.
Now the user selects 2nd record, this does not have the file, so I have to close the first record's browser.
|
|
|
|
|
Re: Close Web.show_document Automatically [message #307502 is a reply to message #307501] |
Wed, 19 March 2008 00:52 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Prasad01
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
Thnaks for the info.
I am already using close.html as mentioned.
The code I am using:
<html>
<head>
<script language="javascript">
function closeit()
{
win = top;
win.opener = top;
win.close ();
}
</script>
</head>
<body onload="closeit()">
close window
</body>
</html>
The problem in this I want to specify the Window name to close, and I dont know how to do that in above code.
Or I want to specify a wildcard address to close like
Http:\\mysite* which would close all browsers with these addresses.
|
|
|
|