Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

want to play a video in pop up via a CEWP link in sp 2013 but facing issue after publishing the page pop up does not open

$
0
0

Hi All,

My Steps:-

0<sup>th</sup> Step:-

Upload a video in any doc library.

1<sup>st</sup> step:-

Add the uploaded link in App as per instruction

http://stevemannspath.blogspot.com/2012/12/sharepoint-2013-videos-in-sharepoint.html

2nd step:-

write this script in CEWP or in text and give reference to CEWP

<script type="text/javascript">
function OpenPage()
{  
  var options = SP.UI.$create_DialogOptions();
  options.width = 850;
  options.height = 700;
  options.allowMaximize = true;
  options.url="/sites/customer/VideoAsset/Forms/Video/videoplayerpage.aspx?ID=3&FolderCTID=0x0120D520A808003912E936CB74764285313433CC275AC3&List=b5087562-892a-417a-b02c-0d377d87f205&RootFolder=%2Fsites%2Fcustomer%2FVideoAsset%2FGrowth%5FDevelopment%2FAdditional%20Content&RecSrc=%2Fsites%2Fcustomer%2FVideoAsset%2FGrowth%5FDevelopment";
SP.UI.ModalDialog.ShowModalDialog(options);
}</script><span class="s4-clust" style="display: inline-block; overflow-x: hidden; overflow-y: hidden;width: 10px; ; height: 10px; "><img src="/sites/customer/Style%20Library/Images/You_Tube.png" alt="" style="left: 0px !important; ; top: -128px !important; "/></span> <text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"></text><div class="secondary" style="padding-left: 3px;"><a href="javascript:OpenPage()">Open</a></div>

I am getting error on below line-

var options = SP.UI.$create_DialogOptions();

"object does not support this property and method"

Please help and let me know the solution.


sudhanshu sharma Do good and cast it into river :)



Viewing all articles
Browse latest Browse all 9368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>