iframe

Modifying DIV CSS properties from within a deeply nested IFRAME.

I'm working with a business intelligence tool that only gives me access to a deeply nested iframe to add code. Ideally I would like to use jQuery and/or plain old JavaScript to modify the left and position CSS of a div that is 3 iframes above my IFRAME. I have access to add JavaScript/HTML to divArea0_1 within the reportiframe IFRAME....

Facebook Like Box

I'm trying to add a Facebook "Like Box" to an existing website, as described here The Page I'm promoting works just fine in preview-box on that page. But when I copy/paste the code as shown to my website, it instead shows a fraction of an empty facebook page with only a partially visible error message. <iframe src="http://www.facebook...

Cross domain iframe content load detection

I have a rather interesting problem. I have a parent page that will create a modal jquery dialog with an iframe contained within the dialog. The iframe will be populated with content from a 3rd party domain. My issue is that I need to create some dialog level javascript that can detect if the content of the iframe loaded successfully and...

How to get rid of the double scroll bar problem when using an iframe

I've seen this problem on the web, and all the suggested solutions aren't working for me, so I thought I'd come here. I have a page that has an iframe. The top of the page is a dropdown menu, the rest of the page is the iframe. The idea like I'm sure everybody else does, is to have the menu stay stationary and the menu selection runs an ...

OpenID and Iframes

hey guys, I'm having a little bit of trouble making OpenID work from within an iframe. basically I have some heavy handed content loaded on the main page and I want to build a log in system where the page doesn't need to be reloaded (and thus reload all of that content again). I fell in love with OpenID from using stack exchange websit...

Open url in iframe from selectednodechanged

Hi, Im having a problem, I have a treeview and I want to load the selected node url in the iframe but have no idea how to do this. I know I cant use response.redirect and I cant use navigateurl because that cancels selectednodechange. Any ideas anyone??? ...

how to make invite friends button in an iframe application made using facebook developer toolkit

I made an iframe application using the facebook developer toolkit. It has a flash game on it which uses AMF to comminucate with the server. I want to implement a invite friends button, which pops up a lightbox(and maybe publish - like buttons) inside flash, how can i do that? ...

URL encoding for document.location.href

Hello - I am building an iFrame and am using document.location.href -> my exact code is: <script type="text/javascript"> document.write("<iframe src='http://www.facebook.com/plugins/like.php?href=" + document.location.href + "&layout=standard&show_faces=false&action=like&font=verdana&colorscheme=light' frameborder=0></iframe>"); </scr...

How do you use Selenium to execute javascript within a frame?

I have a page (index.html) which has a frame: <html> <body> <iframe src="otherPage.html" /> </body> </html> And the otherPage.html has the contents: <html> <head><link src="jquery-min.js" type="text/javascript" /></head> <body><div id="main">Contents</div></body> </html> I am attempting to use the following selenium code on index.h...

iframe refreshes main page

I am currently using a iframe on my main web page. When i click on a link in the iframe I would like it to display the content on the main web page. Any thoughts? ...

Possible Ways to Communicate Between iFrame and Parent Page across domains

Please suggest possible techniques to trigger events in parent page from an iFrame. I tried out url Hashing and using window.postMessage techniques but without any success. ...

Insert fixed elements in editable iframe

Hi, I have an editable iframe and I want to insert two DIVs at the [b]top [/b]and [b]bottom [/b]part(as header/footer) of iframe body respectively. Now, the question is : how to insert a div [b]at the top of iframe body[/b] and fix it there? (Will insertFirst() work?) Also, how to fix the footer div always [b]at the bottom of the ifram...

Edit what displays in an iframe.

I'm trying to display content from anther site on to mine using an iframe. I'm just wondering if its possible to only display certain parts (divs) of this external page in the iframe. Thanks! ...

iframe in iframe

If I put a big iframe on the same page with all the content in the big iframe then can I put the search result onto the big iframe? any code for it? ...

Read IFrame content using JavaScript

Ok, This is my first time dealing seriously with IFrames and I cant seem to understand a few things: First the sample code I am testing with: <head> <script type="text/javascript"> function init(){ console.log("IFrame content: " + window.frames['i1'].document.getElementsByTagName('body')[0].innerHTML); } </script> </head> <body onloa...

How to call iframe's function from this iframe

Hi, I have an iframe created in Javascript with some function f(): var iframe = document.createElement("iframe"); $(iframe).attr({ width: 0, height: 0, frameborder: 0, src: this.options.url, name: id, id: id }); document.body.appendChild(iframe); iframe.contentWindow.f = function(data) { alert("test"); }; Document load...

How to insert html in iframe

Hallo all: I need to insert a html string in a iframe as shown below: .... var html = "<html><head><title>Titolo</title></head><body><p>body</p></body></html>" jQuery('#popolaIframe').click(function() { parent.$("#indexIframe")[0].documentElement.innerHTML = html; }); Is there a way to achieve this? Kind regards Massimo ...

Allow only certain domains being able to load an iFrame

I'm building some widgets for a charity. Due to some logo licensing malarkey, I've got to find some way of only allowing white-listed sites from running the code, or to send a error message (or something like that) rather than the widget. We've got to use iFrames as a fair few sites have already embedded them. Ideally, a PHP solution wo...

JavaScript DOM: transfer element between frames

I'm using the following jQuery code within an iframe (same origin) to try to move a node from the iframe to the main (top) document. var dest = $(window.top.document).find('#dest_id'); dest.append($('#source_id')); The following works ok: window.top.document.getElementById('dest_id').innerHTML = document.getElementById('source_id').i...

iframe created dynamically with javascript not reloading parent URL

I can't seem to reload the parent page from within an iframe even though the domain for my iframe and the parent page appear to be the same. The IFRAME was created dynamically, rather than in the HTML page source, so could that be the problem? The iframe I'm working with is here http://www.avaline.com/ R3000_3 once you log in. You may ...