www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help needed regarding ajax request

  1. #1
    Join Date
    Aug 2009
    Posts
    1

    Unhappy Help needed regarding ajax request

    Hi All,
    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?

  2. #2
    Join Date
    Oct 2003
    Location
    Andover, UK
    Posts
    946
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles