Skip to main content
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/
Source Link

In SP2013 this is the correct way to do it according to Microsoft @ http://msdn.microsoft.com/en-us/library/jj245759.aspx

// Make sure the SharePoint script file 'sp.js' is loaded before your // code runs.

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', openModalDialog);

Reference:

ExecuteOrDelayUntilScriptLoaded not executing after page publishExecuteOrDelayUntilScriptLoaded not executing after page publish

In SP2013 this is the correct way to do it according to Microsoft @ http://msdn.microsoft.com/en-us/library/jj245759.aspx

// Make sure the SharePoint script file 'sp.js' is loaded before your // code runs.

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', openModalDialog);

Reference:

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SP2013 this is the correct way to do it according to Microsoft @ http://msdn.microsoft.com/en-us/library/jj245759.aspx

// Make sure the SharePoint script file 'sp.js' is loaded before your // code runs.

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', openModalDialog);

Reference:

ExecuteOrDelayUntilScriptLoaded not executing after page publish

Source Link
Arsalan Adam Khatri
  • 14.5k
  • 3
  • 37
  • 59

In SP2013 this is the correct way to do it according to Microsoft @ http://msdn.microsoft.com/en-us/library/jj245759.aspx

// Make sure the SharePoint script file 'sp.js' is loaded before your // code runs.

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', openModalDialog);

Reference:

ExecuteOrDelayUntilScriptLoaded not executing after page publish