options.html HTML DOM element required instead of regular HTML:
<script>
function ShowDialog()
{
var htmlElement = document.createElement('p');
var helloWorldNode = document.createTextNode('Hello world!');
htmlElement.appendChild(helloWorldNode);
var options = {
html: htmlElement,
autoSize:true,
allowMaximize:true,
title: 'Test dialog',
showClose: true,
};
var dialog = SP.UI.ModalDialog.showModalDialog(options);
}
</script>
<a href="javascript:ShowDialog()">Boo</a>
, html SharePoint DOM, .
, SP.UI. $create_DialogOptions() ? .
SP.UI.DialogOptions "class" SP.UI.Dialog.debug.js, , javascript.
SP.UI.DialogOptions = function() {}
SP.UI.$create_DialogOptions = function() {ULSTYE:;
return new SP.UI.DialogOptions();
}
, . SO: Javascript?