March 28, 2012

SP.UI.ModalDialog.showModalDialog not working in chrome

In some version of browser, using will not work due to some reason. I found an alternate method to solve this problem, here is the javascript code:

var dialogSP = null;
if (SP.UI.ModalDialog.showModalDialog) {
dialogSP = SP.UI.ModalDialog.showModalDialog(options);
} else {
dialogSP = SP.UI.ModalDialog.commonModalDialogOpen(countryUrl, options, null, {});
}

If you have any questions you can reach out our SharePoint Consulting team here.

No comments:

Post a Comment