How to open jQueryUI modal dialog from within a javascript event
Hi,
I am trying to open a modal dialog from within an event handler method
using the jQueryUI dialog widget. I used to do that with javascript
window.showModalDialog() and that works fine for me. The user entered
the values in the modal dialog and via window.returnValue I could
access them in my event handler method:
function mapServerRequest() {
// modal dialog window
var parameters = window.showModalDialog('dialogs/
getIAdditionalInfo.aspx',...)
...
}
Now I want to do the same using the jQueryUI dialog widget but
whenever I try to open the modal dialog, the event handler code
continues executing without waiting for the user input. So this is not
really modal. Can anyone help me with this issue?
function mapServerRequest() {
// modal dialog window is shown but code execution continues
without waiting for the modal window
$('#dialog').dialog({
bgiframe: true,
height: 140,
modal: true
});
}
Thanks a lot
Shabba
--