Hi
I have the following JavaScript function in SharePoint 2013 which is sitting in a page and it works great in IE, Chrome and FireFox. However in Safari the popup it creates appears without an controls and then immediately disappears.
function ShowCreateResourceDialog()
{
var user = document.getElementById('<%= currentLoggedInUserID.ClientID %>');
var context = new SP.ClientContext();
var relativeWebUrl = context.get_url();
var options = {
url: relativeWebUrl + "/_layouts/15/MyResources/CreatePopup.aspx?CreatedBy=" + user.value,
title: "Create Resource",
autoSize: false,
width: 450,
height: 350,
showClose: true,
dialogReturnValueCallback: RefreshPage
}
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
}
I'm also having problems with controls in Safari that a post back wipes all information from the TextBox and other controls controls.
Can anyone help?