iframe

How to tell the difference between an iframe loading vs. entire page loading in a UIWebView?

In the [webView:shouldStartLoadWithRequest:navigationType:] event, how can you tell the difference between an iframe that's loading content vs. the entire page loading content? It seems like the both call this same event with the same arguments, the only difference being the URL that's going to be loaded, so there is no way to tell the d...

jQuery reports incorrect element height in Firefox iframe

Here a short test to demonstrate my problem. I have a page that loads an iframe: <html> <head> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"&gt;&lt;/script&gt; </head> <body> <iframe id="iframe" src="box.html" style="width: 100px; height: 100px"></iframe> ...

how to select an iframe from itself with jquery

I need to select an iframe with an jquery query inside the same iframe. However, I don't want to assign the iframe a unique id and use $('#'+self.name,top.document) (which i saw somewhere). Is there any relative way to do this (something with $(this) and traversing ??!?) Everything is on the same server, there is no xss. ...

Bust iFrames accurately when implementing DiggBar or FacebookBar?

Understanding all the security and UI concerns with iFrames, I am implementing a toolbar similar to the DiggBar or FacebookBar. A top bar persists across the top 30 pixels of the screen, and an iFrame displaying external content fills up the remainder of the page. When users close the toolbar, and thereby exit my little site to go dire...

Telling when an iframe is on a new URL

Hi, I am using JavaScript to make a small iframe application, and I cannot seem to figure out a way to update the URL in my URL bar I made when someone clicks a link inside the iframe. It needs to be instantaneous, and preferably without checking every millisecond whether or not the value of document.getElementById('idofiframe').src ha...

Force any HREF in an IFrame to use its parent as the target

I'm currently using an IFrame to sandbox user generated content on a website. This eliminates any styling issues with our main stylesheets. However, when a user generates a link using our rich text editor, we would like the link to open in the parent and not just open the link in the IFrame. I realize you can set a target to the paren...

Popup submenu not visible after iframe width

embedded a popup menu inside an iframe. But second/third level sub-menus not visible when it goes beyond iframe width. Thanks in advance for any help!! ...

Reading Iframe Content in Iframe Load

Hi, I just wanna learn how to read Iframe content in onLoad event of iframe and write it's content to the main page ? Thanks.. ...

don't send the cookies in iframe

dentro de un archivo HTA tengo un iframe y no esta enviando las cookies, hay alguna forma de que las envie correctamente. I've an iframe inside of a HTA file, when I call the inner page cookies aren't send to the server. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;...

two clashing javascripts

hi, I'm a n00b when it comes to javascript. I have two scripts which I found online that I am trying to use on the same page. One is prettyPhoto(http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/) which I am using for the light box effect. The other is slideshow (http://slideshowjs.com/) which I'm using in th...

Iframe transparent background

My app has a modal dialog with an iframe inside it. I've written my jQuery code such that when the dialog opens, it sets the appropriate 'src' attribute of the iframe so the content loads up. However, during the delay between the dialog opening and the content loading, the iframe appears conspicuously as a white box. I'd prefer the ifr...

Resizing iFrame with jQuery UI

I have this code and it works fine: Head <script> $(document).ready(function() { $("#test").resizable({minHeight: 50, minWidth: 50}); }); </script> Body <div id="test" style="border: .1em solid black;"> </div> However when I change my "div" into "iframe" I can't resize it anymore. Body <iframe id="test" style="border: ....

Best FRAME replacement object? IFrame? Scrollable DIV?

I've got a Classic ASP page full of frames and I'd like to find a cross-browser-friendly alternative. In many cases, the frame exists solely to allow the user to scroll a window of text on one side of the screen. What's the best practice for showing scrollable content without using Frames? ...

Does Facebook bar re-loads on every request ?

While browsing Facebook pages I was wondering if their bar loads on every request. Using Firebug i discovered this is true, but my user experience on their site tells me is not. I know that their bar use position:fixed; and bottom:0px; CSS style, is this the only trick they do ? Other sites loads their all content using an iframe while ...

How to remove error "Reported Attack Site" in Firefox web browser?

My site was hacked few days back and was banned by google. I have cleaned the database and its a bug free site now. But how do i remove the Reported Attack Site box? I scanned my local pc then i had cleaned the all iframe codes in local files and delete all server files then i uploaded i can view my website internet explorer but still ...

Reasons for not using IFrame?

Hello, are there any reasons not to use iframes at all? I currently use it to load a page from a different server (a sign up page - part of a distributed application) to provide a seamless experience. Is using iframes considered bad practice or is its use OK? ...

Maximize iFrame (so it appears to be the request page)

Hello, how can I (cross-browser compatible) maximize an iFrame so that it appears to be the page in the URL bar even though it is served from a different server? ...

What's the best way to set cursor/caret position?

If I'm inserting content into a textarea that TinyMCE has co-opted, what's the best way to set the position of the cursor/caret? I'm using tinyMCE.execCommand("mceInsertRawHTML", false, content); to insert the content, and I'd like set the cursor position to the end of the content. Both document.selection and myField.selectionStart won...

Can not catch event Load Complete when loading a pdf file in Mac OS X

On my WinXP, everything just work fine. But when testing on a Mac OS X, the loadComplete event never fire. Please help ! ...

File:// link doing nothing in all browsers

I have a link being generated that looks like so: <a target="_blank" title="Test" href="file:///c:/test.xls">Test</a> This link is inside an iframe. When I click on it (in any major browser), nothing happens. Fiddler records no traffic. Pasting the URL into the nav bar works fine - the file download box comes up, and I can download ...