on 06-26-2006 11:27 AM
Hi All,
In my bsp application there is a child window with in parent.While i logoff from the parent window i want the child to be closed along with it.How can i do it?
Users is maintained in "z"table for the this application.
Thanks & Regards
Sujith
Hi Sujith
How are you opening your child window from the parent window? If you are using window.open method, You cant close the child window from the parent window.
Soln 1: Use window.showModelessDialog("URL"[,args, "list"]) or showModalDialog("URL"[, args, "list"]) method to open your child window from the parent window. While closing the parent window, the child window will also close.
Soln 2: Or else, You can close all the sessions of the application. This will close all the open windows by the application. To do this,
i) Open the system application 'SYSTEM' and copy 'session_single_frame.htm' to your application.
ii) Change the target_page attribute's value to your application starting html page name in 'session_single_frame.htm'.
iii) Activate and run session_single_frame.htm. The page will open your application and will handle all the session log offs and window closing.
Get back if you have any doubt.
Hope it helps ;>)
Regards,
Rakesh.
Message was edited by: Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rakesh,
I am using a button in child window,Child window is opened like this
var win = window.showModelessDialog("dept_cust.htm","CUST_DEPT","width=540, height=500, resizable=yes, scrollbars=yes");
Now the problem is if I click on the button it will open another window.I dont want this to happen.How can I solve this problem?
Thanks & Regards
Sujith
closing child windows.
check these links
http://www.irt.org/script/98.htm
http://www.webreference.com/js/tips/000515.html
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.