1

I'm trying to open document library in browser popup window so user can select document from it.

Is is possible to open library in Popup window?

Is there any SharePoint control to open document library in Popup window.

1 Answer 1

1
SP.UI.ModalDialog.showModalDialog({ 
            url: "URL of Library", 
            title: "Title of page", 
            allowMaximize: true, 
            showClose: true, 
            width: 850, 
            height: 600, 
            dialogReturnValueCallback: newCallback 
        });
function newCallback(dialogResult, returnValue) { 
   SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK); 
}

This should open you library in pop-up.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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