0

When you select an item, a popup window appears with its data, inside the window. How can I do that? It would be preferable to use JavaScript functions from SharePoint.

1

You can use SharePoint dialog API for displaying Popup's.

Below is a utility function you can use. Pass the page URL you want to display as a popup

function ShowDialog(url) {
    var options = SP.UI.$create_DialogOptions();
    options.url = url;
    options.height = 300;
    SP.UI.ModalDialog.showModalDialog(options);
}
| improve this answer | |
  • SP.UI.ModalDialog is not shown - I use firebug. I only have: – XristosK May 12 '15 at 12:34
  • Check file SP.UI.Dialog.js is loaded. – Amal Hashim May 12 '15 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.