All Questions

Tagged with
Filter by
Sorted by
Tagged with
87 votes
6 answers
137k views

How to embed fonts in HTML?

I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen the W3C solution, which doesn't even work on Firefox, and this pretty ...
Dan Rosenstark's user avatar
68 votes
12 answers
63k views

Embedding youtube video "Refused to display document because display forbidden by X-Frame-Options"

I'm trying to embed a youtube video on to my page once the user gives the link to the video. <iframe width=\'560\' height=\'315\' src='http://www.youtube.com/watch?v=<video id>&amp;...
Srikan's user avatar
  • 2,181
67 votes
10 answers
56k views

Which Javascript engine would you embed in your application? [closed]

I want to embed Javascript in a hobby game engine of mine. Now that we have the 5th generation of Javascript engines out (all blazing fast) I'm curious what engine would you choose to embed in a C++ ...
Robert Gould's user avatar
  • 69.3k
56 votes
5 answers
167k views

Embed an External Page Without an Iframe?

Is there any way to embed an external web page without using an iframe? I have access to both sites, I just want the page that the content is embedded on to resize based on the content that is ...
JacobTheDev's user avatar
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 ...
Ronaldinho Learn Coding's user avatar
37 votes
5 answers
198k views

how to display base64 encoded pdf?

I have to display base64 pdf in new tab. I am using below code var windo = window.open("", ""); var objbuilder = ''; objbuilder += ('<embed width=\'100%\' height=\'100%\' ...
dnyaneshwar's user avatar
  • 1,294
28 votes
2 answers
42k views

How to create embed code for other sites

I have a service of job portal which other users can use for their sites and blogs. they copy embed code from my site, paste it in their site and display job board in their webpage. how create this ...
Nand Lal's user avatar
  • 702
23 votes
3 answers
46k views

How to set X-Frame-Options in express.js node.js

I have some static assets that I want to serve inside iframes of several desktop / mobile web clients. Now, how do I whitelist a specific set of origins to be allowed setting of X-Frame-Options ...
Harshit Laddha's user avatar
22 votes
4 answers
66k views

Auto-Full Screen for a Youtube embed

I have a Youtube video embeded on a webpage. Is it possible to have the video go full screen when the user presses play, using the HTML5 iframe with Youtube's API? Using the Chromeless player is ...
Philip Kirkbride's user avatar
19 votes
4 answers
39k views

Including hidden data in an HTML page for javascript to process

I produce a complex HTML summary report from data in a database which could be a summary of maybe 200,000 rows in the database. The user can click a link to request an Excel version. When they do a ...
derekcohen's user avatar
  • 1,514
17 votes
4 answers
39k views

Refused to display 'http://vimeo.com/27577981' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

I am trying to embed a video in embed tag But I am getting this error : Refused to display 'http://vimeo.com/27577981' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. for youtube link : ...
Rishi's user avatar
  • 1,319
17 votes
4 answers
25k views

Embed javascript as base64

I'm working on a small GreaseMonkey script where I would like to embed a jQuery plugin (Markitup) so that the script is fully self contained (images + js) except for jQuery which is served from google....
Daniel Johansson's user avatar
16 votes
4 answers
28k views

Embed markdown (md) into HTML

I need help embedding a markdown, or *.md, file inside of an HTML index file. I have found that I can embed HTML inside of markdown, but not vice-versa. This would help to increase the speed of my ...
Jacob Birkett's user avatar
15 votes
3 answers
57k views

Javascript Alert - Removing "The page at ??? Says"

I have a form and I am using Javascript to validate the form so if you leave a field blank it will alert "Please fill in your Name". If I go to the link directly, it works perfectly. But this is ...
Drew's user avatar
  • 6,814
15 votes
2 answers
1k views

Pinterest embed image does not show

I'm trying to embed a Pinterest link, like explained here. I've added this Pinterest link to a blog: <a href="https://www.pinterest.com/pin/139330182194785581/" data-pin-do="embedPin"></a&...
Adam's user avatar
  • 6,282
14 votes
1 answer
9k views

Using PhantomJS to embed all images of a webpage produces warnings but works

I'm trying to convert a webpage into a single file by embedding all the images (and other external resources once I passed this point). Here's how I run PhantomJs: ./phantomjs --web-security=false ./...
Mehran's user avatar
  • 16.2k
13 votes
2 answers
15k views

How to embed Youtube live chat with url permanent?

The embed URL for a channel's live stream is: https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID and it works but if I want to embed near at it a YouTube live chat for current streaming ...
grigione's user avatar
  • 697
13 votes
1 answer
48k views

Unsafe JavaScript attempt to access frame with URL

I've incorporated Vimeo into a WordPress theme I'm building, and I get these errors: Unsafe JavaScript attempt to access frame with URL http://themes.ibrogram.com/beta/blog/ from frame with URL ...
daryl's user avatar
  • 14.8k
13 votes
3 answers
17k views

Passing Messages from iFrame Across all Browsers

I have an embed-able iframe that will be used on 3rd party sites. It has several forms to fill out, and at the end must inform the parent page that it is done. In other words, the iframe needs to ...
Dusda's user avatar
  • 3,357
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 ...
Matt De Leon's user avatar
12 votes
2 answers
3k views

Javascript callback after instagram embeds have loaded?

I'm attempting to tile multiple Instagram embeds with Masonry. Problem is the instagram embeds change sizes after loading so the layout leaves gaps. Is there a callback that i can use when all ...
George Ananda Eman's user avatar
11 votes
3 answers
9k views

Links to Specific Times in YouTube iframe embed

It is possible to link to a specific time in a YouTube video appending the #t=1m49s syntax. Is it possible to have links on the same page of the embed that make the video jump to different times in ...
bookcasey's user avatar
  • 39.8k
10 votes
3 answers
43k views

How to set the default zoom level on new Google Maps?

I readed many question, map help, product forums and so on... but I never find the answer just this "It is not possible". I can't believe it. So how can I set the default zoom level on an embed ...
netdjw's user avatar
  • 5,765
10 votes
2 answers
27k views

Show PDF file on webpage as Carousel with each page as a separate slide

I am facing a challenging assignment - create a slider carousel which will be displaying separate pages of a single multi-page PDF as a separate slides on webpage. Check out the image below to get the ...
Acidon's user avatar
  • 1,324
10 votes
1 answer
40k views

How to get around net::ERR_FAILED 200

So basically what im doing here is taking an embed, duplicating it to a canvas and then trying to change the background of said duplication transparent. It does work, however not in the browser due to ...
JP2K's user avatar
  • 115
10 votes
2 answers
1k views

How to develop a Bigcommerce app that would add a javascript tag to all pages in the store?

I would like to develop an app for Bigcommerce that other users of the platform could use. The app should add a simple javascript embed code to all pages of the store. The embed code is similar in ...
odedbd's user avatar
  • 2,375
9 votes
3 answers
15k views

How to dynamically add wmode=transparent to Youtube embed code?

I have several Youtube videos that are added through a CMS by a client. I need to add the following to all Youtube src links: ?wmode=transparent How would I do that? An example of the Youtube embed ...
Rob's user avatar
  • 6,342
9 votes
3 answers
29k views

How to change the value of embed src with JavaScript?

I have just begun to learn JS. I am trying to change the value of embed src in the tag present in my HTML code. But am unable to do so with the following code I've written - HTML - <ol> <...
user avatar
9 votes
1 answer
34k views

How to embed VLC in webpage

I am trying to embed a video into my HTML/ASP webpage using VLC. The box appears showing the VLC player in FireFox, but it won't play anything. This is what it looks like: Please tell me what I am ...
Kryptos's user avatar
  • 542
9 votes
1 answer
29k views

Using Google Maps API to dynamically embed a map based on an address - Need to use Google's data for the markers/bubbles

I am trying to embed a Google Map into a dynamic webpage. The only variable the map depends on is the address of a business. That address comes from the website's database. I cannot just statically ...
Will M's user avatar
  • 2,135
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 ...
UID's user avatar
  • 4,494
8 votes
4 answers
9k views

Best way to embed flash in html

There are too many method for embedding flash in html, which way is the best? Requirements are: Cross-browser support Support for alternative content (if flash is not supported by the browser) ...
Ticex's user avatar
  • 3,054
8 votes
1 answer
22k views

Start/pause audio in an embed tag ? (IE8+)

I'm creating pages for a small web-based game which must have some background music playing. Those pages should be compatible with most desktop browsers, including IE8 (but we can ignore the mobile ...
s427's user avatar
  • 1,484
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="...
macca1's user avatar
  • 9,631
8 votes
1 answer
5k views

How do you convert from a New Google Maps share link to an iframe embed html?

In my app users can just paste a link to something like a youtube or vimeo video or some soundcloud audio and it then figures out how to embed that via oembed. So if you paste the link to a video ...
Le Roux Bodenstein's user avatar
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 ...
Smithy's user avatar
  • 847
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 ...
Marty Markenson's user avatar
7 votes
2 answers
2k views

correct url not showing up in iframe copied from embed button

I am working on a website in which proper url doesn't show up after copying from the embed button. On clicking embed button(as shown below in an image), I am getting the following code inside iframe ...
flash's user avatar
  • 1,473
7 votes
1 answer
5k views

How do I allow script, object, param, embed, and iframe tags in HTMLPurifier?

This is kind of a special combination of tags that I want to allow in HTMLPurifier, but can't seem to get the combination to work. I can get script tags to work, but then embed tags get removed (I ...
shmuel613's user avatar
  • 1,724
7 votes
2 answers
10k views

Force Youtube embed to play in HD (2016 edition)

OK, this has been asked many times before – but Youtube seems to change things up every other day. I can't find a way to force a Youtube embed to start playing a HD source from the beginning. The ...
Fabian Sebastian's user avatar
7 votes
1 answer
950 views

is it possible to reload the embed content from TikTok after loading a page?

On my SPA app for instagram I use this code: window.instgrm.Embeds.process()
Nemanja Bjelić's user avatar
7 votes
0 answers
3k views

How to embed a Word Processor in a React webapp?

I need to embed a word processor with full .docx capabilities (mainly multi page functionality), so a rich text editor like Draft.js won't work for me. I tried to embed a Google Docs editor in ...
Prithvish Baidya's user avatar
6 votes
1 answer
13k views

Embed Youtube with Captions on by default not working

I'm trying to embed a Youtube movie, and would like Captions to be on by default. From https://developers.google.com/youtube/player_parameters#cc_load_policy I understand I should use cc_load_policy=...
Marty's user avatar
  • 2,164
6 votes
3 answers
10k views

Embed xsl into an XML file

I'm trying to embed an xsl into a XML file. The reason for doing this is to create a single file that could be moved to different computers, this would prevent the need to move the xsl file. The ...
Brad8118's user avatar
  • 4,702
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 ...
ivkremer's user avatar
  • 1,263
6 votes
2 answers
4k views

Can't play YouTube video through iframe API when video is unmute

Since Chrome update to version 72, my custom player that runs over the YouTube Iframe API stopped working. It still works perfectly on Firefox or Chrome <= 71. Using the code below, when function ...
Pedro Barros's user avatar
  • 1,336
6 votes
3 answers
20k views

how do i program the youtube embed player to unmute when clicked

How do I set the youtube embedded player to unmute upon clicking it. You can see the embedded player i'm referring to at http://www.harvestarmy.org home page. It's the one at the right where it says "...
user2419132's user avatar
6 votes
3 answers
2k views

Insert elements at <script> tag position

When sites give you some JavaScript that you paste into a web page to have content inserted at that position, how does the script determine its current position in the DOM? Without using document....
Nick Spacek's user avatar
  • 4,762
6 votes
1 answer
2k views

How to embed an Instagram carousel in particular index?

I'm using https://api.instagram.com/oembed to embed an Instagram carousel (e.g. https://www.instagram.com/p/BvRwa1tArMo). I was wondering if there's a way to select the index of the carousel image. ...
juliomalegria's user avatar
6 votes
1 answer
6k views

Use third-party embed code in a React component

I need to use a third part embed code for a form. I'm trying to return it in a component, but it's obviously not working. How can I set this one up? class Form extends Component { render() { ...
Max T's user avatar
  • 1,405

1
2 3 4 5
20