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

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 :)

Also check if your javascript retains after Publishing. Sharepoint will remove malcious code/script html after saving the page and make page safe.
Regards,
Vaibhav Tikam
http://codepinch.blogspot.com
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Mark As Answer". It'll help other users who are visiting your thread for the
similar problem

Similar Messages

  • I've always had PSE 7.0, but I guess my computer has an issue reading the Installation CD I have for it, so I tried to manually download it from the official website, but when I go trough the whole process, it does not want to accept my product key number

    I've always had PSE 7.0, but I guess my computer has an issue reading the Installation CD I have for it, so I tried to manually download it from the official website, but when I go trough the whole process, it does not want to accept my product key number... What do I do?
    It's either my computer because it's old, or something is wrong with my cd installer. I don't know, but I just want to install my PSE 7.0, but it does not work even on the official website with my product key #.
    PLZ HELP ME!

    I've always had PSE 7.0, but I guess my computer has an issue reading the Installation CD I have for it, so I tried to manually download it from the official website, but when I go trough the whole process, it does not want to accept my product key number... What do I do?
    It's either my computer because it's old, or something is wrong with my cd installer. I don't know, but I just want to install my PSE 7.0, but it does not work even on the official website with my product key #.
    PLZ HELP ME!

  • Hello I have purchased a iphone 5s from a customer and forgot to give me the email and password and if placed in the phone sim card does not open because he wanted to email and password, what do I do in order to open the iPhone please help me :(

    how to remove activation lock  :Hello I have purchased a iphone 5s from a customer and forgot to give me the email and password and if placed in the phone sim card does not open because he wanted to email and password, what do I do in order to open the iPhone please help me

    You just made a very expensive mistake, especially if you can't return the phone.

  • Purchased a new computer because the old one died, does not want me to import my library from my ipod, any way to do this?, Purchased a new computer because the old one died, does not want me to import my library from my ipod, any way to do this?

    Just had to buy a new computer because ours died. Not allowing me to download my itunes from my ipod classic or my ipod nano, any ideas, don't want to loose it all?

    In terms of searching i have searched for photos on my finder. However, none of the photos that appear are from my iPhoto Library.
    Search with FindAnyFile. You can download it here:   http://apps.tempel.org/FindAnyFile/index.php
    Search for any file with "ThumbJPGSegment" in the name. If you added at least one image to your library, the library should contain a file with this name, see OldToad's post: Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?

  • Hello, I want to play my video files (which are on s3 bucket ) like live . Some buddy please help me

    Hello, I want to play my video files (which are on s3 bucket ) like live .i.e.mox.tv   i want play videos on my website.Some buddy please help me ..for that what i need to do?
    my video are in mp4 formate with h.264 codecs
    Message was edited by: lakhanp22

    Just as of late I noticed that Apple Stores are selling security cameras that work with their app on an iPhone. Very expensive but it uses both WiFi when local and cellular when not at home.
    In your case I would check the apple store and see if there is a free or paid app to access your home closed circuit TV system. The cameras have to have their own ip address so you then need only enter that and access will be available to you. But they must be on your home network.
    a lot of the higher end CCTV systems have a free app that can be used like the new Apple Security system.
    Just Google it or check the store.
    Good Luck

  • HT204382 I want to play a video with an .avi format

    I want to play a video with an .avi format for the first time on my iMac v. 10.8. ..I downloaded DivX but still no go. Suggestions?

    Try http://www.iskysoft.com/topic-snow-leopard/how-to-play-avi-with-quicktime-on-mac .html
    Allan

  • When I want to play a video, it asks me to download the latest Adobe Flash player, and the iPad won't do that.

    When I want to play a video, it asks me to download the latest Adobe Flash player, and the iPad won't do that.

    The iPad doesn't and never will support the Flash program. You will need to download and install a different browser like the aforementioned Skyfire. Photon and Puffin are also mentioned as browsers that support Flash. Or see if the place you're accessing that video from has an app.

  • I am calling an xml , that come from rtmp server and i want to play a video . when i pause it show an error of cross domain. what i can i do?

    I am calling an xml , that come from rtmp server and i want to play a video . when i pause it show an error of cross domain. what i can i do?

    Please quote the exact error message, word-for-word, verbatim.
    What is your operating system?
    What version of Lightroom?

  • When I am on a Youtube video that is running and I want to switch to another tab, the Ctrl+ tab number does not work, is that intended functionality?

    When I am on a Youtube video that is running and I want to switch to another tab, the Ctrl+<tab number> does not work, is that intended functionality?

    This can happen when the video player (Flash plugin) has the focus.
    In that case the plugin consumes all the key presses.
    You will have to click with the mouse elsewhere on the page or in the user interface to make keyboard shortcuts work.

  • I have a new Macbook pro, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop.

    I have a new Macbookbook, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop. Also i am thinking once the video is done  the fan should be slowing down and getting quiet on its own.

    Your fan(s) will run at high speed (i.e., loudly) while video is playing, and you can't get around that.
    If your fans are not slowing down within 2-4 minutes after CPU- and/or GPU-intensive usage ends, and the application that was showing the video is still running, Quit that application. (In fact, if you're accustomed to Windows, you may not realize that simply closing a Mac application's window does not quit the application. You still need to use the Quit command in the application-name menu. There will always be a bright dot beside or below the application icon in your Dock for each application that is open.) Quit the ones you aren't using, and see whether that allows the fans to slow down without restarting the machine. If that doesn't do the trick, reset the SMC:
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US

  • Firefox does not want to open popup or when I do "file new window" it does not open it too.

    When I click on a link that opens a popup, firefox does not open it. Same for "File> New Window." Then, often after Firefox starts to malfunction and no longer wants to open my bookmarks. I uninstalled and reinstalled firefox, removed all extensions .. But this does not solve my problem. can you help me please?
    Excuse me for my mistakes in English, I am a French person and I try to speak English the best I can so that you can solve my problem. Thank you.
    == This happened ==
    Every time Firefox opened
    == I clic on a link that opens a popu

    Your above posted troubleshooting list shows quite a few extensions.
    Did you really disable all of them and still had the problem?
    See [[Troubleshooting extensions and themes]]
    Which security software (firewall) do you have?
    Some can block pop-ups as well.

  • After connecting my Sony camcorder to imac (Snow Leopard) to import a video the import window does not open. I have imported videos from the sam camcorder successfully before. What could have happened? Puzzled)

    After connecting my Sony camcorder to Imac (Snow Leopard) to import a video to imovie 09 the import window does not open. In the past I have successfully imported videos from the same camcorder. What could have happened? Puzzled

    Oh my! Obviously, I don't know what I'm doing. But I do know that my goal was to do both---backup AND free some space. My iMAc is old (2006) and I upgraded it a year or so ago to Snow Leopard. I didn't think I had the capability of backing up without an external drive, but  maybe I do since I upgraded. Do I?
    But I bought this My Book mostly for freeing space because I like to make cards in Photoshop and I'm forever running out of space when I get too many layers (don't really know what I'm doing there, either).
    Is there some way that I can rectify my mistakes and start all over?
    Thank you so much for  beng so prompt with your reply and patient with mine. I tried for so long to see the dialog box with the library listings. When I launched iPhoto, even with holding down the Option key, it kept immediately launching into the full screen. Finally, after an hour of doing it over and over again, it worked when I held the key down for 5 minutes. Then when I was typing my reply, I kept getting a message to "Request Time Out." Didn't know how to do that, so kept hitting the OK button and kept typing for another half minute. Finally, when ready to send, Safari couldn't do it. "Try again" exasperated me until I realized I would have to begin again and use Firefox. When I got there and ready to type, I got the message  that my message had been retrienved and did I want to use it?!!
    So your kindness is very much appreciated.

  • I am trying to use powerpoint but when I open a document I want to work on it does not open on my desktop. It appears as open on mission control but it disappears offscreen. How can I get it to open where i need it and can work on it?

    I am trying to use powerpoint but when I open a document I want to work on it does not open on my desktop. It appears as open on mission control but it disappears offscreen. How can I get it to open where i need it and can work on it?

    It's almost certainly too late.
    The time to create a backup is before a catastrophe.  After a catastrophe, it's too late.

  • When I try to get on the internet thru safari at home, on my network, I get a pop up that says Safari cannot open the page because it is not connected to the Internet.  How can this be and how do I fix it?

    when I try to get on the internet thru safari at home, on my network, I get a pop up that says Safari cannot open the page because it is not connected to the Internet.  How can this be and how do I fix it?

    Does the iPod connect to other networks?
    Do other device connect?
    Did the iPod connect to this network before?
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>GeneralReset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I actually need help but cannot find the answer. Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as

    I actually need help but cannot find the answer.
    Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as blank as when I first open Firefox, it automatically loads my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    hello, please refer to [[New Tab Page – show, hide and customize top sites]] in order to switch the feature off.

Maybe you are looking for