Dear All,
How will we do in JSP page on closing the parent window the child windows should close automatically.
I will show my code
Please i will show you my code.
For HTML link - function closeWin()
-
{
-
if(window.applnreq && window.applnreq.open && !window.applnreq.closed)
-
window.applnreq.close();
-
}
-
function showApplnFormWindow()
-
{
-
-
strURL = '<%=ApplicationStatusHTMLPath%>';
-
applnreq = window.open(strURL,"applnreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes");
-
applnreq.focus();
-
}
For Pdf file i am using same code - function closeWin()
-
{
-
if(window.tradenpdfreq && window.tradenpdfreq .open && !window.tradenpdfreq .closed)
-
window.tradenpdfreq .close();
-
}
-
function showTradePDFWindow()
-
{
-
-
strURL = '<%=TradePDFPath%>';
-
tradenpdfreq = window.open(strURL,"tradenpdfreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes");
-
tradenpdfreq .focus();
-
}
Sir for HTML it is working fine.But for PDF link it showing the error
"MEMBER NOT FOUND".
Please i request anybody to rectify my code in pdf link case so that
i should not face "MEMBER NOT FOUND".
Thanks and Regards
Sumanta Panda
7 4099
According the link you have provided i did it.But still it is not working and showing error.
Could you please rectify my code which i have mentioned below. - function closeWin()
-
{
-
if(window.tradenpdfreq && window.tradenpdfreq .open && !window.tradenpdfreq .closed)
-
window.tradenpdfreq .close();
-
}
-
function showTradePDFWindow()
-
{
-
-
strURL = '<%=TradePDFPath%>';
-
tradenpdfreq = window.open(strURL,"tradenpdfreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes");
-
tradenpdfreq .focus();
-
}
Thanks a lot in Advance
Regards
Sumanta
Is this in all browsers or just a particular one?
Dear Sir,
In my requirement this is viewed only for Internet Explorer with Internet Explorer 6.0 and above.
Kinly sir please look at my above code and please changes my code accordingly.
Thanks a lot in advance.
Regards
Sumanta Panda
Most likely this is an error that occurs in IE6, though I haven't tested the code with a PDF file. The PDF file is opened in Acrobat rather than the browser, so you lose control of the window. You could open a window and contain the PDF file in an iframe.
Hi AcoderSir,
Thanks for your response.That Means sir,thier is no solution for my above requirement to solve the bug in IE6.0.
Kindly sir,Please advise me if any ultermative way is it possible to
solve this bog.
Thanks a lot in Advance.
As I said, I haven't tested, but you could try creating a HTML page with an iframe of full page size with the PDF file contained within it and open that page instead of opening the PDF file directly.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: gokul |
last post by:
Hi all,
Iam using mozilla firebird.
I have three popups displayed at one point of time...if I close one
the other two goes hidden....could you please suggest me the reason
for this behaviour and...
|
by: Ron L |
last post by:
I have an MDI application with a number of child windows. In each child
window I am catching the Closing event and having the child window decide if
it should set cancel to true. The intent here...
|
by: Ron L |
last post by:
I have an MDI application which opens a number of child windows, each of
which could have data in a state that needs to be saved. Each child window
catches its Closing event and cancels it if the...
|
by: Chris Bruce |
last post by:
In my application I need a way to distiguish between the following events:
1. When a user closes an MDI child window.
2. When the user closes the MDI parent window which subsequently closes
the...
|
by: Charles Law |
last post by:
For some reason, when I click the X to close my MDI parent form, the action
appears to be re-directed to one of the MDI child forms, and the parent
remains open. I am then unable to close the...
|
by: javanet |
last post by:
Hi all,
1) i opened a parent window.
2) then i opend a child window thruogh this parent window.
Now i want to close child window before closing the parend window
means my clients can not be...
|
by: zacks |
last post by:
I have a .NET 2.0 MDI application where the child form has a Tab
Control. Each of the Tab in the Tab Control has a Validating event to
handle what it should do when the user changes tabs.
But...
|
by: Buddha |
last post by:
Hello,
I posted this on two forums, without too much help .. and I am kinda
stuck in this.
I need to refresh the parent page from the second child window which
is opened by the first child and...
|
by: Frinavale |
last post by:
I have 2 FireFox (version 2) browser windows opened.
One is the child of the other.
When the user is finished with the child window, a method in the parent window is called to refresh a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |