iframe

Why wont this js code work in Chrome and Safari?

I have an iframe on my index.html and this iframe is dynamic. on my index.html I have a form, which when submitted, shows the results inside the iframe. The problem is the Iframes height also has to be dynamic for the website to look "clean". So in the Iframes php page, I have this code: <body onload="parent.resize_iframe(document.bo...

Display all external in links in a fancy box iframe

I have made the site egrafiiti.net using the wordpress theme Aggregator 1.0 by Templatic.com To keep people on the site i want to be able to make any external link open in an iframe on the current page, instead of a new window. also the iframe will be styled like fancybox, mulitbox etc (dimmed background, border etc) Is there any way t...

jQuery contents() find the page height of anchor link in iFrame

I have an iFrame that when loaded stretches his whole length without scrollbars. After 1 second I want to scroll to an anchor in the iFrame. I think I need to get it's height? How can I do this? HTML: <iframe id="help-frame" src="help.php" scrolling="no"><\/iframe> JS: $("#help-frame").load(function() { document.getElementById...

Facebook's condensed multi friend selector layout and rendering doubt

Hi, This is my first time working on a facebook app. I created an iframe app (i.e selected 'iframe' as the 'canvas type' when registering the app). I have this situation where there is a multi friend selector form in the sidebar of the app (which has a width of about 200px). Screenshot: The relevant code for generating that form is a...

how to autoresize iframe contents on extjs webdesktop

hi all , i'm creating my personal extjs webdesktop , i have a tab panel with a tab where i wrote html code for iframe that load a aspx page. When i resize window tabpanel iframe contents doesn't resize like a browser does and i see just scroll bars,is it possible autoresize iframe contents also? here there is my code: items: [{ ...

How to react in ASP.NET code-behind class when a hyperlink is clicked inside the page's IFrame?

Hi Guys, I have an ASP.Net page containing an IFrame. In the IFrame I load a html document. When the user clicks on a hyperlink in the content of the IFrame, I would need a callback to be called in the code-behind class of the ASP.Net page. I guess that I need Ajax to do this but I'm not exactly sure about what I need to do. Could you ...

PHP: Using session variables set in an iframe in multiple iframes

Hi, I use a content management system called liferay that lets you add iframes to a page very easily. I have various different iframes that i want to use the same php session variables. This wouldn't be an issue if the main webpage was setting the sessions. the problem is the sessions are created in one iframe and I'm wanting to use the...

IFrame on unload refresh parent page

I have an iframe in a page. When the iframe is closed I would like to refresh the parent page. Checking out the iframe element w3 page I see there are no standard events. I considered a polling approach, having the parent page constantly check if the frame is created, and then checking if it is removed and then refreshing, however this ...

How to load an aspx page from silverlight frame?

I have two frames in silver light application one frame contain treeview control. I want that when my user click on treeview node then aspx page is load on next frame. how can i achive it.. ...

How to change Facebook 'Like' button to 'Recommend' button

I have a snippet to create a 'Like' button for our news site: <iframe id="likeButton" src="http://www.facebook.com/widgets/like.php?href=" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe> However, to make it work properly, because the button posted an error saying the button was on...

Permission denied for ajax request inside an iFrame

Hello, For many various reasons my web page consist of the following, a ruby page from www.example.com that calls an iFrame from another PHP server (subdomain.example.com), in both parent and child there is this javascript instruction : document.domain="example.com"; Parent page can access elements in child page, I needed that to make ...

Close ModelPopupExtender from codebehind of iFrame content page

I have a ModalPopupExtender that houses an iFrame. The iFrame loads a form and on successful submission of a form I show another ModalPopupExtended (a "Success" dialog). When the user clicks ok, I want to close the modal popup containing the iFrame. I'm using an event handler delegate to call a function in the iFrame content page's cod...

Display email like major providers (Gmail, Yahoo)

I want to display email in a section of a page with other data (CSS layout). When the emails are sent to the browser (jQuery Ajax), one of the emails has a CSS style that affects the existing pages CSS. I rather not use an iframe to contain the emails. How do providers such as Gmail and Yahoo display emails with HTML and CSS without t...

Why is this JavaScript advertisement cropped only when it's loaded inside of an <iframe>?

As part of a project I'm working on, I need to load an AdMeld ad (a major ad network) inside of an <iframe>. I can't call the add directly due to complicated cross-browser limitations. Here is a very simple page that loads one of our ad slot, with rotating ad creatives: http://troy.onespot.com/static/stack_overflow/4949/iframe.html I ...

accessing variable in parent page from iframe

I have a page with an iframe that contains a html page. I want to access a javascript variable in the parent page from within the iframe. The name of the variable in the main page is "observer". I try and do the following in the iframe page: parent.observer = 'aadasds'; but I am getting the following error: Permission denied for to ...

Any disadvantages to using iframes

I've been advised to use an iframe to share a form between 2 websites, but I always got the impression that iframes are bad or that they shouldn't be used. Not sure I even remember what gave me this impression. So can someone clarify if using an iframe is bad practice or not, and if it is bad practice, why? ...

Change the look of a website when inside an Iframe

Hi all. It is possible to change the look of a website (say colours, width) when it is contained in a FRAME? I am looking for some technique that is gonna work in all browsers. ...

iframe reload issue firefox file upload

My ascx does support postback(dont ask why), I do an ajax call to save all the data on page, but I have to do a file upload as well so I am using an iframe for it. Everything works well expect for in the firefox. In the firefox it all works well for the first time not the 2nd time. i.e. if the form filled and files uploaded and submitte...

Changing data in child iFrame issue - can't obtain a DOM object.

Hi, guys. For some reason I'm trying to parse this website: http://www.vblandrecords.com/index.aspx. I am currently trying to click Document type tab and then change From date value. I supposed I could have done it with the following code, in VBA: Option Explicit Public WithEvents ieObj As InternetExplorer Public Sub Launch() Se...

Dynamic iframe resize woes in google chrome. Help!

Hey guys long time reader first poster. Well I seem to be having an iFrame resize issue with Google Chrome. > <script language="javascript" type="text/javascript"> function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; } </script> < That's in my header. > <iframe id="conten...