Is it possible to show two modal dialogs simultaneously with one click? Please refer to the following code where the dialog with the following line of code shows perfectly fine.
$('#Information_details_dialog').modal("show").draggable();
However, when I try to show the second dialog, just like in the following code:
$('#secondInfodetails_dialog).modal("show").draggable();
I just see a blank dialog which I believe belongs to the #secondInfodetails_dialog
and this dialog is basically stopping the first dialog to show. I was just wondering if it’s possible to show two dialogs at the same time with a click? Please let me know. Thanks
function InformationDialog() {
var self = this;
this.cellClicked = false;
this.urlKey = "showdocument";
this.getData = function (roll_number_) {
// Lookup the AJAX web service URL
var url = myapp.getWebServiceURL(self.urlKey);
var ajaxRequest = jQuery.ajax({
data: {
member_id: 24,
roll_number: roll_number_
},
dataType: "json",
method: "GET",
cache : false,
url: url
})
.done(function (data_, textStatus_, jqXHR_) {
var first_doc_contents = data_.docsList;
var content = $('<pre />').html(first_doc_contents[1].note_content);
$('#first_doc_contents').html(content); // Here you replace the content
$('#Information_details_dialog').modal("show").draggable();
var second_doc_contents = $('<pre />').html(r);
$('#secondInfodetails_contents').html(second_doc_contents);
$('#secondInfodetails_dialog).modal("show").draggable();
})
.fail(function (jqXHR_, textStatus_, errorThrown_) {
alert("Error in getData(): " + errorThrown_);
return false;
});
};// end of getdata function
// Initialize the virtual page
this.initialize = function (fragment_) {
self.getData(roll_number);
};
}