HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Pop up window
Pop up window
  View type:
Hi every one,
How are you?
How can I prevent two popup windows from being opened at the same time; by other words when the student click on the first popup window then open another one the first one should be closed automatically.
I need the answer urgently;please
Thanks in advance
Eman
 
The pop ups have a close button and the user should close it when done with it. If they don't it stays open and others can open.
You need to change the second trigger, that is the object or action that opens the second pop up. Add an action that ONCLICK hides the first, so you need a DISPLAY to HIDE it.
 
 
thanks Nickj;
you have said that"the user should close it when done with it." our tester doesn't suppose that[:D]
He suppose that the student may open the popup and he does not close it before clicking on another popup,so both of them will be opened at the same time .
I need a way to enforce any opened popup window to be closed automatically when the student/user click on another one.
and I'll say again that I need the answer urgently;please[:confused:]
Thanks in advance
Eman
 
 
 
Just add some actions to each pop up you have.
If you want each new pop up opening to close any other already open pop ups then you'll need to add this...
The event to drive this will be ONDISPLAY (when the new pop up is opened) with a DISPLAY action to hide any other pop up. Each pop up object will need the DISPLAY HIDE action for all other pop ups on the page.
Once you've done this opening any pop up will hide any other open pop ups.
 
 
 
 
Thanks Nickj
But I need to make the window to be closed not to hide the object completely so the student/user can't reopen it.
I hope you can help me.
Thanks in advance
 
 
 
 
 
Eman in your first post " when the student click on the first popup window then open another one the first one should be closed automatically". OK So display HIDE will remove the object from display, the same block of actions can also switch off the original inititor for the event.
If you want the window.. I assume you mean the browser window now and not a pop up... use some javascript ... see here http://www.quackit.com/html/codes/html_close_window_code.cfm
 
 
 
 
 
 
Thanks Nickj
Firstly,When I've used display HIDE it removed the object and didn't closed the opened window.
Secondly the link you direct me to I couldn't use it for closing the windows of (contents popup window,help popup window).
I hope that there is another solution.
 
 
 
 
 
 
Thanks Nickj
Firstly,When I've used display HIDE it removed the object and didn't closed the opened window.
[:confused:]couldn't use it for closing the windows of (contents popup window,help popup window).
I hope that there is another solution. [:confused:]
Subject:
Message options
No additional options