Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Dialog box

$
0
0

Can anybody provide some code on how to create a SP JavaScript dialog box (modal dialog).

I tryed using the 2010 code, but gives a strange error.

var options =
    {
        url: pageToLoad,
        title: 'Snapshot',
        showClose: true,
        width: 700,
        height: 250,
        allowMaximize: false,
        dialogReturnValueCallback: NotifyCallBack
    };

    SP.UI.ModalDialog.showModalDialog(options);
Error: Unable to get property 'getElementsByTagName' of undefined or null referencewithin the SP.UI.Dialog.js file.
 

 


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>