Hi,
It's a wired question. I used a project template "Provider Hosted - App For SharePoint" to create a customization App for SharePoint Online. and I add some javascript to increase the value of the function like open a new window. so I use the following javascript code, and call it from the C# code behind.
function sharePointReady() { //Using a generic object. var options = { title: "My Dialog Title", width: 400, height: 600, url: "/_layouts/DialogPage.aspx" }; SP.UI.ModalDialog.showModalDialog(options); }
and then I got the error message as below and it is funny not to find out the "showmodaldialog" method, just found out the "showpopupdialog" when I use debugging mode. after that, I use the vs .net to find out the "showpopupdialog" but cannot find it out just find "showmodaldialog" out. If I run it, nothing happened. ... so how should I solve it.
the following screen shot: cannot find the "showmodaldialog" out, just find the"showpopupdialog"
Image may be NSFW.
Clik here to view.
the following screen shot: cannot find the "showpopupdialog" out, just find the "showmodaldialog"
Image may be NSFW.
Clik here to view.
Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.