dcsimg
check child window is open from parent window
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ramachandran_Subramanian
Posted On:   Friday, March 14, 2003 01:42 AM

Hi, I have a intranet Application which uses a security system for authentication. My requirement is that when a user logs into the application there will be link shown to the application.If the user clicks the link a window is opened which will be closed by the application developers and they will open a new window. which is the welcome page where the user can choose country and language. Now if another user logs(using new browser instance IE) he will also see the application link and if he clicks the application ,at that time i have to check whether already a welcome page is opened ,if so i have to alert him saying that already a user has logged in and ask him to logout,otherwise if   More>>

Hi,

I have a intranet Application which uses a security system for authentication.






My requirement is that when a user logs into the application there will be link shown to the application.If the user clicks the link a window is opened which will be closed by the application developers and they will open a new window. which is the welcome page where the user can choose country and language.







Now if another user logs(using new browser instance IE) he will also see the application link and if he clicks the application ,at that time i have to check whether already a welcome page is opened ,if so i have to alert him saying that already a user has logged in and ask him to logout,otherwise if he is the first user and there is no welcome page open already then i should allow him to proceed as normally.





What i want to know is that how do i check whether the window (welcome page) is already open or not from the first window which i close say the file is index.html(opened first)





Hope my question is clear.Kindly reply as soon as possible



Thanks
Rama    <<Less

Re: check child window is open from parent window

Posted By:   Nitesh_Naveen  
Posted On:   Friday, March 14, 2003 02:58 AM

That's an incredibly complex way of describing a problem... Lemme see if i've understood right.
You have an index.html opened in a window. Then from a link on this page you open another window with some page, which will close itself and open a new window(?) with welcome.html.
if this is the casr then you have already lost the reference to the child window from the parent window since you closed the original child that was opened. Also since you cannot track the other users on the client side that needs to be done on the server side. I don't get the logic behing not giving the welcome page to the other users. Is this a one-user at a time application?
well... i guess probably the solution you need is to keep the users in the servletcontext attribute and use this to determine whether to show the welcome screen.
About | Sitemap | Contact