Domanda

Hello Iam coding a Sharepoint Solution with a Application page. In this Page i created a ModalDialog to open when a Button is clicked. The Problem is I want to run java script when the Dialog is closed. I think dialogReturnValueCallBack is the rigth way but it just doesnt work. This is my Script:

 <script type="text/javascript">
     function showPopUp() {
         var options = {
             url: 'http://lbsps-2013/Anfragen/Lists/Klinik/NewForm.aspx',
             title: 'Neue Klink',
             allowMaximize: false,
             showClose: true,
             dialogReturnValueCallBack: callbacker
         }
         SP.UI.ModalDialog.showModalDialog(options);

     }

     function callbacker(dialogResult, returnValue) {
        alert("HI");
     }

</script>
È stato utile?

Soluzione

Parameter names in JavaScript are case-sensitive. According to MSDN, it's dialogReturnValueCallback.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top