All Questions
209
questions
57
votes
8
answers
173k
views
start/play embedded (iframe) youtube-video on click of an image
I'm trying to start playing an embedded youtube video by clicking an image. The idea is to have an image on top of a video, and when the image is clicked it fades out and starts playing the video.
I'...
37
votes
7
answers
108k
views
Play a beep sound on button click
OK I've read several answers here but they didn't help me at all (in fact, none of them is being accepted as answer)
Question is how to "Play a beep sound" on "button click"
I am trying to make a ...
12
votes
3
answers
24k
views
Checking if a website doesn't permit iframe embed
I am writing a simple lightbox-like plugin for my app, and I need to embed an iframe that is linked to an arbitrary page. The problem is, many web sites (for example, facebook, nytimes, and even ...
11
votes
3
answers
66k
views
PDF Embedded in <object> or <embed> tag not loading in IE 11
I have to create an Image slider for which I am using:
"Galleriffic plugin > http://www.twospy.com/galleriffic/",
in the Image slider, along with images, I have to show PDFs for some cases.
And to ...
9
votes
4
answers
68k
views
How to Embed Video using HTML5 with local file
I'm trying to embed a video using html5 with a local mp4 file.
file on my local machine.
when i debug i keep getting invalid file path or unsupported video type.
What am i missing? I can get this ...
8
votes
4
answers
71k
views
PDF embed not working in IE11, but it WORKS when edit the HTML in DOM Explorer (F12 - debug tool of IE)
Here is the Fiddle link "http://jsfiddle.net/Z99gr/2/" which similar to my code, I have created a Image slider using Galleriffic. In the image slider along with images I am showing PDF embedded.
The ...
8
votes
2
answers
20k
views
How can I track a click event of an embedded video (youtube, vimeo, etc.)? (to track play count)
Is there a way to track play counts for embedded videos? Ideally without resorting to a thumbnail linked to launch the embed / iframe code.
Example (try it yourself on jsFiddle):
<!doctype html&...
8
votes
2
answers
11k
views
Dynamically change embedded video src in IE/Chrome (works in Firefox)
I'm trying to dynamically change an embedded video on a page. It's working in Firefox but for some reason it's not working in IE and Chrome (strange combination). Here's the HTML:
<object id="...
7
votes
1
answer
41k
views
jQuery Fancybox and YouTube embeds
I'm trying to get a YouTube embed to open up in a Fancybox. I've based it on the code on the Fancybox page — http://fancyapps.com/fancybox
Here is what I have:
<a class="various fancybox" href="...
7
votes
2
answers
17k
views
Create an embeddable "widget" from the JS script
I would like to be able to embed the content that gets created via this snippet anywhere I like, using one line of code - same way that you get any kind of snippet somewhere, so that it renders an ...
7
votes
1
answer
11k
views
Instagram embeds.js library not loading
I have a javascript function which loads the HTML embed code for an Instagram post. The post appears but the photo is replaced by a grey background and the Instagram logo. The post does contain other ...
6
votes
1
answer
7k
views
Work with elements from embed or object tag
I have an svg graphics inserted in the page with an embed or object tag:
<object data="graphics.svg" type="image/svg+xml" id="graphics" />
The image is loading properly and I can see its SVG ...
6
votes
2
answers
11k
views
Embed slack on a html page
I am having trouble embedding a slack feed onto a html site. When I try to use an iframe, it just shows up as a white box. I have tried using jquery
<!DOCTYPE html>
<html>
<head&...
5
votes
4
answers
11k
views
Make callback after play button is pushed - Youtube embed video
Is it possible to do a javascript action after play button is pushed? I know I will need to use onStateChange function form Youtube's API. But I really don't know where to start? Any help? Thank you.
...
5
votes
1
answer
5k
views
How to access dom elements of #document from embed tag?
I have an markup with embed tag want to access #document contents.
Tried to traverse till embed tag after fetching couldn't able to access inner nodes however there is an function available ...
5
votes
3
answers
6k
views
Removing annotations on embedded YouTube videos
I've discovered that you can disable annotations on embedded YouTube videos by adding the parameter &iv_load_policy=3 to the url in the embed code.
Example:
<object width="425" height="344"&...
5
votes
1
answer
666
views
Show alert on a button click
I'm using the default Facebook embed code:
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=176702405718664&xfbml=1"> </script>
&...
5
votes
1
answer
294
views
auto activating embedded sage cell
I'm trying to embed a small sage cell/program into my webpage. However, the cell only activates when the user presses a activation button. I would like the cell to show up automatically on the page ...
4
votes
3
answers
3k
views
Stop Vimeo embeds on previous / next buttons within Jquery Infinite Carousel
My setup: http://jsfiddle.net/ASa2K/1/
I have a Jquery Infinite Carousel which will have in it embedded Vimeo vids.
When 'Next' or 'Prev' is clicked, I would like it to stop all videos. Currently it ...
4
votes
4
answers
18k
views
How to add video to nivo slider?
I have set up nivo slider in a Homepage. But now, I need to show a video inside that slider, but I have found that nivo slider goes bananas when I add a video:
<object type="application/x-...
4
votes
1
answer
658
views
Journey won't stop playing! (Changing Embed Object's Values With JQuery Doesn't Change Playing Video)
I have a page with the following video player:
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="589" height="470" id="Take5" align="...
4
votes
1
answer
2k
views
Show element when Vimeo embed finishes
I'm embedding a Vimeo video on my page dynamically with the following snippet:
<iframe id="singlepage"src="http://player.vimeo.com/video/<?php the_field('vimeo_id'); ?>?api=1&player_id=...
3
votes
5
answers
6k
views
How to hide flash embeds without disabling them
I'm trying to hide some embedded flash objects without disabling them. Right now I'm placing them in a div, and using the jQuery UI hide method. The problem is, when I show the flash later using the ...
3
votes
3
answers
13k
views
Attempting to view pdf file though iframe using jQuery modal popup
I am trying to display a pdf file though iframe using jQuery modal popup, however, it's asking the user to download the file when the page loads instead of the pdf file being embedded inside the ...
3
votes
1
answer
2k
views
How can I set the iframe src to an IP
How can I set the src element of an iframe to an IP through Jquery?
<iframe src="page.html" id="iframe">
That's my HTML. When I try to edit the src via. Jquery, it doesn't work. All I get is a ...
3
votes
1
answer
6k
views
dynamically embedding youtube videos with jquery
I'm trying to retrieve a listing of a user's youtube videos and embed them in a page using jQuery. My code looks something like this:
$(document).ready(function() {
//some variables
var ...
3
votes
1
answer
435
views
Organizing multiple embed codes with jQuery
I have several embed codes on my website, for example:
Embed Code #1:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/f8Lp2ssd5A9ErAc&hl=en_US&...
3
votes
1
answer
2k
views
Changing target of an embed vlc video
I'm trying to change the target/source of a vlc video based on the user's selection. This is what I have so far:
$('select').change(function() {
var router = $(this).val();
...
3
votes
1
answer
3k
views
dynamically adding/controlling vimeo embeds
I'm stuck and could really use some help.
I'm trying to dynamically add vimeo embeds on a page. The page loads with a still of the video, and when the still frame is clicked, it fades out and the ...
3
votes
2
answers
565
views
Dynamically add image in middle of story
I'm displaying a story on a website, I would like to dynamically add an image within the story, how could I do that?
I don't want to add it at the beginning of the story or at the end of the story, ...
3
votes
1
answer
2k
views
Vimeo/Youtube playback Jquery .click() function... I don't even know how to word this question
This is complicated. Let's start with what I am doing.
I am using the Masonry Jquery Plugin (http://desandro.com/demo/masonry/docs/basic-single-column.html) to align a variety of divs (.box). I ...
3
votes
2
answers
2k
views
Add attribute to embed tag using jquery
I have the following embed tag:
<embed type="application/x-shockwave-flash" width="640" height="505" src="url_to_video" allowscriptaccess="always" allowfullscreen="true"></embed>
I have ...
3
votes
1
answer
700
views
Vimeo embeds with Cycle2
I'm using the Cycle2 jQuery plugin for creating a slideshow, and I would like to include Vimeo embeds if possible. There is an extension for YouTube embeds made by the author but there's nothing about ...
3
votes
1
answer
998
views
How to embed youtube video in mvc3?
How can i embed youtube url into my cshtml page.
I tried to embed url like this but its not working.
I tried to pass url but its showing me nothing.
My url is: http://www.youtube.com/watch?v=...
3
votes
2
answers
1k
views
javaScript lose focus when I append <embed>
I need to add beep in my script. I add every time, when sound must be.
$("#beep").html("<embed src='button-16.wav' hidden='true' autostart='true' loop='false' id='bp' />")
But when I add , my ...
2
votes
1
answer
21k
views
Load content within div without refreshing main page
Hello i have a 3 pages i want to run within one main page (index.html) sort of "app style"
the pages are: form.html, the form results.php and a link.html page
i want it to load like this demo: ...
2
votes
2
answers
5k
views
reload/ reset embedded swf on click
I have various flash movies in tags on my page. Is there any way on click of a button (html) I can restart/ reload the embedded flash movie?
Im using:
<object data="flash/cvdb_video_cvdb_access....
2
votes
1
answer
2k
views
Detect <embed> tag failing to load video
I am trying to catch an error with the following embed tag (on iPad/iOS):
<embed width="320" height="240"
src="path/to/my/live/stream/playlist.m3u8"
type="application/vnd.apple.mpegurl" ...
2
votes
2
answers
336
views
How can I use session in script?
I can write out the images src with this script:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/...
2
votes
1
answer
6k
views
jquery attach a hover event handler to a path within an embedded svg file
I'm trying to attach a hover event handler to a path within an embedded svg using jquery.
The embed code in the html looks like this:
<embed id="theSVG" src="thesvg.svg" type="image/svg+xml" ...
2
votes
2
answers
7k
views
Embedded iframe within SVG element
The problem that I am having is that I am trying to embed an iframe within an svg element using jquery, and I am unable to get the iframe to be drawn. Here is an example from stack overflow that is ...
2
votes
2
answers
1k
views
PDF object not displaying second time in modal
I want to display a pdf in a Bootstrap modal, so in the .modal-body I added :
<object width="1000" height="500" data="path/to/pdf" type="application/pdf">
...
2
votes
1
answer
2k
views
Dynamically set height of embedded pdf
I managed to dynamically set the height of my embed element that contains a pdf. Using jQuery to set the new height. But I don't have the feeling I have used the best 'solution'.
Old height = height ...
2
votes
3
answers
117
views
jQuery won't work if externally loaded elements
I'm importing an external php file into a different php file.
External file:
function featured($featured) {
echo '<button id="switch">CLICK ME!</button>';
echo '<object type="...
2
votes
2
answers
1k
views
Twitter embed (with wordpress) and load?
I want to know when a tweet is loaded.
I have this kind of post http://pego-design.com/remarky-brisi/media-twitter-embeds/ or here http://en.support.wordpress.com/twitter/twitter-embeds/
and would ...
2
votes
2
answers
2k
views
jQuery Click on Embed not Working?
I have the following jsFiddle - http://jsfiddle.net/uShjA/ - and I am trying to do something like
jQuery(document).on('click', 'embed', function () {
alert('clicked');
});
i.e. do something ...
2
votes
1
answer
3k
views
jquery.append not working for div with id, but working for body?
I'm trying to append VLC player in an html page via jquery. I can do this with $("body").append(html), but not $("#VideoPlayer").append(html)...Is this html too complex?
jQuery:
$("body").append(...
2
votes
0
answers
288
views
Is there a a way to embed a forum into a mobile app using javascript/jquery
I'm building a mobile app and one of the features it has is a forum, I was wondering if there is a way to embed one into the app.
e.g If I make a free forum using any website that offers it, is it ...
2
votes
1
answer
2k
views
How do I get the selected text inside an object embed using jquery?
I have an object embed html element that is used to display a webpage selected by the user.
The embed declaration is quite simple:
<embed id='frame' src=file></embed>
Where file is a ...
2
votes
0
answers
535
views
Scroll bottom event on embed tag inside iframe
I need to make an embed tag scrollable inside an iframe like this one.
<iframe id="windowPDF" height="100%" width="100%" scrolling="yes" src="data:application/pdf;base64,pdfString64">
</...