iframe

Chrome and Firefox are not displaying most PDF documents in an iframe

喜你入骨 提交于 2019-12-12 07:31:34
问题 I am running Windows 7, 64 bit. I have recently updated my OS to install the latest updates. Since then, most PDF documents have stopped rendering in my program. My program wants to display PDF documents in a separate iFrame. I do this by getting the URL of the PDF document and setting window.frames['docview'].location = url; In most cases, the iframe view remains blank (or clears if something was shown there previously). If I take that same URL and open it in a new tab or window, it renders

How to print PDF from IFRAME if src = pdf?

╄→гoц情女王★ 提交于 2019-12-12 07:24:44
问题 I have an iframe which needs point directly to a PDF file (not a page with a PDF): <iframe id="ecard-pdf" name="ecard-pdf" style="position: absolute;" src="/profile.pdf"> </iframe> I want to be able to print the PDF in this iFrame I have found several solutions in other questions that do not fit my needs: Require to have a function in the iframe ( https://stackoverflow.com/a/473270/1246369 ) Suggest focusing the frame and then performing print action on it ( https://stackoverflow.com/a

Get YouTube video id from embed iframe code

情到浓时终转凉″ 提交于 2019-12-12 07:22:43
问题 I want to get the YouTube video ID from YouTube embed code using preg_match or regex. For a example <iframe width="560" height="315" src="//www.youtube.com/embed/0gugBiEkLwU?rel=0" frameborder="0" allowfullscreen></iframe> I want to take the ID 0gugBiEkLwU Can anyone tell me how to do this. Really appropriate your help. 回答1: Using this pattern with a capturing group should give you the string you want: d\/(\w+)\?rel=\d+" example: https://regex101.com/r/kH5kA7/1 回答2: You can use : src="\/\/(?

Show a loading gif while iframe page content loads

北慕城南 提交于 2019-12-12 07:06:41
问题 I searched and tried various solutions to what I'm trying to achieve, to no avail... I'm working on a photography website which has a high volume of images loading in an iframe, which takes a bit of time to load. I want to show a loading gif image in the iframe until the images have finished loading. Here is the website in question, http://www.chriszachary.com/portfolio I'm using a javascript motion gallery to allow the user to control image scrolling with their mouse. The images do not

rendering facebook wall in an iframe tab- fb:wall replacement and other options

断了今生、忘了曾经 提交于 2019-12-12 07:02:51
问题 I am trying to build a Facebook app that generates a tab that includes a page's wall complete with "post to wall" dialog below some content. So far the only app that I know that does that is Bandpage (for example http://www.facebook.com/beyonce ). It turns down that rendering a wall this way in an iframe is not trivial. Here are some of the approaches I've researched: Using curl to scrape a wall: not only is this an ugly solution, but Facebook protects against that. Using Social Plugins (

How to disable download option of pdf file in c# ?

爱⌒轻易说出口 提交于 2019-12-12 07:02:00
问题 How to disable the pdf Toolbar because I don't want to give the download option to the pdf viewers. I have used Iframe for showing Pdf File please find the following code <iframe ID="iFrame2" runat="server" align="bottom" frameborder="2" name="iframe1" height="500" width="600" src="~/pdffiles/example.pdf"></iframe> Please help me to disable the download option using c#. Thanks 回答1: You cant. It is a browser feature which means you have no control over it. You can use third party tools like

X-Frame Option is set to allow but safari shows Refuse to display

…衆ロ難τιáo~ 提交于 2019-12-12 06:49:12
问题 I am working on a application which embeds tableau report in iframe. It runs perfectly on all browsers other than safari. As shown in the 2nd image it shows that error "Refuse to display.." but I have changed all the setting and added X-Frame-Options in my header like this HttpContext.Current.Response.Headers.Remove("X-Frame-Options"); Response.AddHeader("X-Frame-Options", "ALLOWALL"); After adding this in response header it shows X-Frame-Options = AllowAll show in in image 2 but it gives

Overlay one iframe on top of another, scroll them together

本秂侑毒 提交于 2019-12-12 06:39:08
问题 Following up on How to rewrite URLs referenced by Javascript code? I'd like to overlay a button on top of someone else's website (e.g. overlay a Paypal button alongside Stackoverflow's bounty button) and have the two <iframe> s scroll together. The button would reside in the top layer. The website would reside in the bottom layer. I understand that transparent <iframe> s were/are abused for clickjacking but the browser security mechanism seems to block legitimate use-cases. In my case the

scrollbar iframe in javascript

瘦欲@ 提交于 2019-12-12 06:31:41
问题 I would like to add a scrollbar when the contents of the iframe is too large and does not appear. I am trying the following: parent.iframepage.style.height = "350px"; parent.iframepage.style.width = "500px"; parent.iframepage.contentarea.style.height = "350px"; parent.iframepage.contentarea.style.width = "500px"; parent.iframepage.contentarea.style.overflow = "visible"; any help please? 回答1: Surely the correct syntax would be ... parent.iframepage.style.overflow = "auto"; I'd recommend doing

angular js load external site in iframe

杀马特。学长 韩版系。学妹 提交于 2019-12-12 06:10:08
问题 I have one angular js application which is running on nodejs. I want to load an external site, the external site is also my application which is running on different IP, with-in a div while loading the template url. So in template url I mentioned one HTML file. Inside that HTML file I had written like this. <iframe src="myexternalurl"></iframe> But in error console it is coming like: Refused to display 'myexternalurl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. 回答1: Change