We have a jquery where we do drag and drop effect based on using different images. The drag and drop works fine and we can even exchange information among the images. The issue now just before we allow the drag and drop to complete we call a pop-up window like this window.open(url, “VALUES”, “width=500,height=300”);. In it we have 2 text boxes and javascript to validate the data entry. The issue is that in the main window we must not proceed (drag n drop) until the pop-up window text boxes have been filled and information sent back to main window? How to control that ?
Share
use
var returnValue = window.showModalDialog(...);instead ofwindow.open().A modal window is a blocking call and the javascript in the main page will not proceed until the modal is closed.
https://developer.mozilla.org/en/DOM/window.showModalDialog