iframe

Adding a row to a table in an iFrame with jQuery (live?)

坚强是说给别人听的谎言 提交于 2019-12-13 03:37:13
问题 I have a page that is loading an iFrame that has it's source based on what link the user clicks. The iFrame returns a small table that I need to add a row to. My issue is that I need use something like .live or .delegate as the iFrame is not loaded on document.ready. How do I tie the .append to a .live or .delegate on the iFrame load and not a click or mouseover type function? I have tried: $(document).ready(function(){ $('#click').click(function(){ $('#myFrame').attr('src', 'http://iframe

How to put image behind embedded youtube iframe

天涯浪子 提交于 2019-12-13 03:37:05
问题 i'd like to put an image behind my youtube iframe. The image will act as a visual frame around the youtube window. I've tried different methods, but either both elements where placed after each other, or the iframe was positioned relative to the window size of the browser. Both elements will sit in a table. I want the youtube window to sit about in the center of the background image and nothing should put both elements apart (like changing the window size of the browser etc.) In addition it

Change mousecursor above external <iframe>

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 03:34:36
问题 I have a <div style="cursor: move;"> <script type="text/javascript" src="h**p://www.some-external-js"></script> </div> the external JS loads some iframe with content: <iframe src="somesource"></iframe> I would love to change the mousecursor above the iframe, which is in my div box. Unfortunately this is not possible with CSS alone, because the iframes overwrites the cursor settings? Any idea? 回答1: It's not possible. The Same Origin Policy will block you from modifying any of the iframe

iframe scaling width issue

会有一股神秘感。 提交于 2019-12-13 03:34:03
问题 I am using a zoom /scaling to resize an iframe: { -ms-zoom: 0.80; -moz-transform: scale(0.80); -o-transform: scale(0.80); -webkit-transform: scale(0.80); -o-transform-origin: 0 0; -moz-transform-origin: 0 0; -webkit-transform-origin: 0 0; } This works well for what I want, however where the width is resized it leaves margins where 100% stays as -20%. I could theoretically detect the width of the parent and then use jQuery after the resize to set it, or maybe zoom the inside page instead, but

Force facebook app to use page tab iframe

笑着哭i 提交于 2019-12-13 03:31:14
问题 I have an iframe facebook app currently running on a page tab. Unfortunately, when people share some of the links within the page, the resulting shared links send users to the original content on the server and not to the facebook page tab. How can I force users who arrive directly at the URL into the page tab iframe? 回答1: I found the solution: basically you can use the facebook javascript api to detect if you are within the iframe. If not, redirect. Here is the code: // Test if canvas page

specify charset of page loaded in iframe

核能气质少年 提交于 2019-12-13 03:15:37
问题 I was wondering, is it possible to supply a custom charset for a loaded iframe? E.g if i have a page named www.example.com with source code: <meta charset=utf-7> <html> <body> Test </body> </html> Now i have a site named, www.example2.com , what i want to do is load www.example.com in an iframe and set the charset of the loaded iframe page to utf-8 , is this possible? if so how? Thanks. 回答1: The page inside the iframe is completely independent of the "outer" page and it can have whatever

jQuery: Loading iframe on click - how to write manageable code?

不羁岁月 提交于 2019-12-13 02:58:33
问题 looking for some feedback / advice from advanced web devs on how to actually write manageable code for this scenario. Scenario We have various links on the site in containers. Upon clicking one of these, we use jQuery to create an iframe and load a page in it. HTML part: (starting after body) <a id="slot1" href="#0">Text</a> <a id="slot2" href="#0">Text</a> <a id="slot3" href="#0">Text</a> <a id="slot4" href="#0">Text</a> <!-- iframe content will be displayed within this div --> <div id=

TypeError: 'undefined' is not an object (evaluating 'window.frames[“content”].document.location')

Deadly 提交于 2019-12-13 02:49:32
问题 On Internet Explorer my code works perfectly well, but I am using Safari on a Mac and it gives me that error. This is my code: <!DOCTYPE html> <html> <head> <title>The Me Project</title> <link href="me.css" rel="stylesheet" type="text/css" href="me.css" /> <script type="text/javascript"> function page(setter) { if (setter=="home") { window.frames["content"].document.location.href = "home.html"; } else if (setter=="birth") { window.frames["content"].document.location.href = "birth.html"; }

How to pass a parameter from a jsp to an iframe?

谁都会走 提交于 2019-12-13 02:46:33
问题 I have an jsp from which i call the iframe called iframe1 . <iframe id="iframe1" style="display:none;" height="430" width="675" src="Myjps.jsp" ></iframe> Now i have a parameter called myActualValue, which i am getting from a bean . Now i have to pass this parameter to iframe1 . How can I do it ? Kindly help . 回答1: Inside first jsp: <iframe id="iframe1" style="display:none;" height="430" width="675" src="Myjps.jsp?myActualValue=<%= myActualValue %>" ></iframe> Inside Iframe1 (Myjps) <script>

How to dynamically change the length of an object or iframe based on the length of its content

▼魔方 西西 提交于 2019-12-13 02:39:13
问题 I'm working on a project where Web pages are composed of different fragments which are dynamically loaded with different types of objects. So for example, at a certain point a page might have 2 fragments, one that shows a video and another that shows some text, and at another time that same page might show 2 blocks of text. Changes in content depend on the user viewing it and because of that the same fragment (defined by and object tag or an iframe) might contain videos (mp4, avi, etc), or