473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

JSP page on closing the parent window the child windows should close automatically.

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
Expand|Select|Wrap|Line Numbers
  1. function closeWin()
  2. {
  3. if(window.applnreq && window.applnreq.open && !window.applnreq.closed)
  4. window.applnreq.close(); 
  5. }
  6. function showApplnFormWindow()
  7. {
  8.  
  9. strURL = '<%=ApplicationStatusHTMLPath%>';
  10. applnreq = window.open(strURL,"applnreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes"); 
  11. applnreq.focus();
  12. }
For Pdf file i am using same code
Expand|Select|Wrap|Line Numbers
  1. function closeWin()
  2. {
  3. if(window.tradenpdfreq && window.tradenpdfreq .open && !window.tradenpdfreq .closed)
  4. window.tradenpdfreq .close(); 
  5. function showTradePDFWindow()
  6. {
  7.  
  8. strURL = '<%=TradePDFPath%>';
  9. tradenpdfreq = window.open(strURL,"tradenpdfreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes"); 
  10. tradenpdfreq .focus();
  11. }
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
Dec 24 '08 #1
7 4099
acoder
16,027 Expert Mod 8TB
See http://bytes.com/groups/javascript/5...dfs-new-window (thread from newsgroup archives).
Dec 24 '08 #2
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.

Expand|Select|Wrap|Line Numbers
  1. function closeWin() 
  2. if(window.tradenpdfreq && window.tradenpdfreq .open && !window.tradenpdfreq .closed) 
  3. window.tradenpdfreq .close();  
  4. }  
  5. function showTradePDFWindow() 
  6.  
  7. strURL = '<%=TradePDFPath%>'; 
  8. tradenpdfreq = window.open(strURL,"tradenpdfreq","height=450, width=650,scrollbars=yes,top=0,left=0,status=yes");  
  9. tradenpdfreq .focus(); 
  10. }
Thanks a lot in Advance
Regards
Sumanta
Dec 25 '08 #3
acoder
16,027 Expert Mod 8TB
Is this in all browsers or just a particular one?
Dec 29 '08 #4
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
Dec 30 '08 #5
acoder
16,027 Expert Mod 8TB
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.
Dec 31 '08 #6
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.
Jan 2 '09 #7
acoder
16,027 Expert Mod 8TB
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.
Jan 3 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
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...
5
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...
2
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...
1
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...
10
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...
2
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...
19
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...
4
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...
29
Frinavale
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.