iframe

how to resolve iframe cross domain issue [duplicate]

微笑、不失礼 提交于 2019-12-30 04:31:06
问题 This question already has answers here : IFrame security and CORS (1 answer) Overcoming “Display forbidden by X-Frame-Options” (26 answers) Closed 3 years ago . I'm making web page that has to show another domain's web page. For example, in my web html, there are two <div> tags. Like : <html> <head></head> <body> <div> <p> hello world </p> </div> <div> <!-- other domain's web page comes here --> </div> </body> </html> To resolve my issue, I should use <iframe> , <embed> or <object> tags, but

iframe horizontal scrolling not rendering on iOS

空扰寡人 提交于 2019-12-30 03:40:11
问题 I'm developing a iOS HTML 5 webapp and need to display a large page with lots of text. A iframe seems the right tool as it allows scrolling to view the content on a small screen. Using iOS 5+ and overflow: auto; -webkit-overflow-scrolling:touch; in the iframe's style I can get working scrolling in a iframe on the iPhone. The issue is that when scrolling horizontally to view more of the frames content the frame is blank, scrolling down works as expected. I suspect that the problem lies in the

Right align Facebook like button

 ̄綄美尐妖づ 提交于 2019-12-30 01:42:05
问题 I am able to put a Facebook like button on my website, but how do I make it to be right-aligned within the div / iframe it is in? I tried applying various CSS properties, but I could not get anything to move in the iframe. 回答1: iframe is an inline element, you can use text-align: right for a div that contains that iframe, or float the iframe to the right, but just make sure to clear the float afterwards. sample: http://jsfiddle.net/Mujj6/3/ and: http://jsfiddle.net/Mujj6/5/ 回答2: I think this

CSS vh units inside an iframe

喜夏-厌秋 提交于 2019-12-30 01:37:30
问题 I'm trying to use CSS vh units inside of an iframe. I'm finding that they are scaled to the size of the iframe somehow. In other words, 100vh isn't the windowheight. It's set to the height of the iframe. Does this seem right? Is there a workaround? 回答1: I know this is an old question, but as people move toward the vh unit, this question will become much more common. To clarify, here's an example of the problem. We have an HTML file that loads an iframe : <!DOCTYPE html> <html> <head></head>

Replace Entire Content of Iframe

偶尔善良 提交于 2019-12-30 00:56:27
问题 Is there a way to replace the ENTIRE contents of an iframe using Javascript (or Jquery)? For example if my iframe had the following content... blah outside of html <html> <head> </head> <body> <h1> my title </h1> </body> </html> blah outside of html ..It could all be replaced by your script :) The best that I've seen so far is this: $(youriframe).contents().find('html').html('your content here'); but that still wouldn't replace the content outside of the html tags. We have an interesting

Setting cookie in iframe - different Domain

99封情书 提交于 2019-12-30 00:29:05
问题 We have our site integrated as an iframe into another site that runs on a different domain. It seems that we cannot set cookies. Has anybody encountered this issue before? Any ideas? 回答1: Since your content is being loaded into an iframe from a remote domain, it is classed as a third-party cookie . The vast majority of third-party cookies are provided by advertisers (these are usually marked as tracking cookies by anti-malware software) and many people consider them to be an invasion of

Setting cookie in iframe - different Domain

会有一股神秘感。 提交于 2019-12-30 00:29:02
问题 We have our site integrated as an iframe into another site that runs on a different domain. It seems that we cannot set cookies. Has anybody encountered this issue before? Any ideas? 回答1: Since your content is being loaded into an iframe from a remote domain, it is classed as a third-party cookie . The vast majority of third-party cookies are provided by advertisers (these are usually marked as tracking cookies by anti-malware software) and many people consider them to be an invasion of

how to get YouTube video id from image thumbnail source, and set as an iframe?

ぐ巨炮叔叔 提交于 2019-12-29 09:53:47
问题 So if the image tag is <img src="http://i1.ytimg.com/vi/LL0Y4MZ45bo/0.jpg" class="youtubeimg"></img> I don't know how to extract the YouTube video id ( LL0Y4MZ45bo ) from the thumbnail image src and then apply it to an iframe. currently i have 100% working, which applys the src to the iframe. but what i dont know how to do is get the id from the img tags in this case LL0Y4MZ45bo and add it to the youtube embed src http://www.youtube.com/embed/ LL0Y4MZ45bo <iframe src="" class="youtubeiframe">

how to get YouTube video id from image thumbnail source, and set as an iframe?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 09:53:46
问题 So if the image tag is <img src="http://i1.ytimg.com/vi/LL0Y4MZ45bo/0.jpg" class="youtubeimg"></img> I don't know how to extract the YouTube video id ( LL0Y4MZ45bo ) from the thumbnail image src and then apply it to an iframe. currently i have 100% working, which applys the src to the iframe. but what i dont know how to do is get the id from the img tags in this case LL0Y4MZ45bo and add it to the youtube embed src http://www.youtube.com/embed/ LL0Y4MZ45bo <iframe src="" class="youtubeiframe">

how to get YouTube video id from image thumbnail source, and set as an iframe?

让人想犯罪 __ 提交于 2019-12-29 09:53:01
问题 So if the image tag is <img src="http://i1.ytimg.com/vi/LL0Y4MZ45bo/0.jpg" class="youtubeimg"></img> I don't know how to extract the YouTube video id ( LL0Y4MZ45bo ) from the thumbnail image src and then apply it to an iframe. currently i have 100% working, which applys the src to the iframe. but what i dont know how to do is get the id from the img tags in this case LL0Y4MZ45bo and add it to the youtube embed src http://www.youtube.com/embed/ LL0Y4MZ45bo <iframe src="" class="youtubeiframe">