Help needed regarding ajax request
I have a scenario where in when i click on a link in a window, another window opens with a dialog box with buttons open, save and cancel button. Basically this is done using window.open(AjaxrequestUrl). Now my requirement is, dialog box opens, user should not be allowed to do any operation in the previous window. How will i be able to check if the dialog box has opened in another window from the parent window?
Dialogues (alert, prompt, confirm and modals) DEMAND attention from the user, meaning he can't do anything to the opener until he has. Therefore window.open is not a modal, but a pop-up.
To ensure he can't do anything to the opener while the pop-up is active, you could either write a script which detects focus (onblur etc) and returns false on any actions called or, more simply, layer a partially-transparent DIV over the opener window which blocks all access to links and other functionality.
This div would be set to display:none initially, then set to display:block just before your pop-up opens.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread